Harvest - A toolkit for extracting posts and post metadata from web forums
Automatic extraction of forum posts and metadata is a challenging task since forums do not expose their content in a standardized structure. Harvest performs this task reliably for many web forums and offers an easy way to extract data from web forums.
Installation
At the command line:
$ pip install harvest-webforum
If you want to install from the latest sources, you can do:
$ git clone https://github.com/fhgr/harvest.git
$ cd harvest
$ python3 setup.py install
Python library
Embedding harvest into your code is easy, as outlined below:
from urllib.request import urlopen, Request
from harvest import extract_data
USER_AGENT = "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:70.0) Gecko/20100101 Firefox/70.0"
url = "https://forum.videolan.org/viewtopic.php?f=14&t=145604"
req = Request(url, headers={'User-Agent': USER_AGENT})
html = urlopen(req).read().decode('utf-8')
result = extract_data(html, url)
print(result)
WEB-FORUM-52 gold standard
The corpus currently contains from 52 different web forums gold standard documents. These documents are also used by the integrations test of harvest.
Publication
- Weichselbraun, Albert, Brasoveanu, Adrian M. P., Waldvogel, Roger and Odoni, Fabian. (2020). “Harvest - An Open Source Toolkit for Extracting Posts and Post Metadata from Web Forums”. IEEE/WIC/ACM International Joint Conference on Web Intelligence and Intelligent Agent Technology (WI-IAT 2020), Melbourne, Australia, Accepted 27 October 2020.
Metadata
Release files for harvest-webforum 1.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| harvest-webforum-1.1.0.tar.gz | 18.7 kB | Without provenance | Details for harvest-webforum-1.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| harvest_webforum-1.1.0-py3-none-any.whl | Python 3 | none | any | Details for harvest_webforum-1.1.0-py3-none-any.whl |
Total release size: 45.6 kB
Release files / harvest-webforum-1.1.0.tar.gz
| Download URL | harvest-webforum-1.1.0.tar.gz |
|---|---|
| Size | 18.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b31202776b515abc739e179c4b515f46d47b74b40ba1251510d32e89e8351b40
|
|
BLAKE2b-256 checksum How to use checksums |
df9d419fae66ea2381646b465ae76bff96d579fe8af8ebb342803c379ef606b2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.1 pkginfo/1.4.2 requests/2.22.0 setuptools/45.2.0 requests-toolbelt/0.8.0 tqdm/4.30.0 CPython/3.8.5
|
Release files / harvest_webforum-1.1.0-py3-none-any.whl
| Download URL | harvest_webforum-1.1.0-py3-none-any.whl |
|---|---|
| Size | 26.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
5e69562cfd7baaedff1d297cd182704a12a67947f88578faf951516196050d9d
|
|
BLAKE2b-256 checksum How to use checksums |
daa784f0d52101417a531ed39e4d7db898a355fed55095e832849d83aa32ce8b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.1 pkginfo/1.4.2 requests/2.22.0 setuptools/45.2.0 requests-toolbelt/0.8.0 tqdm/4.30.0 CPython/3.8.5
|
Security for harvest-webforum 1.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.