mrkoll-scraper
Tool to scrape and generate an RSS feed from the incredibly creepy mrkoll.se Swedish toplist. Each RSS entry represents the list as it looked at a given point in time, plus convenience links to search for the person's name on Duckduckgo, Flashback, and The Facebook.
Installation
pip install mrkoll-scraper
Usage
CLI
mrks --scrape
Scrapes the current list and saves it to the Shelve database mrks.db in the current working directory. This operation saves the raw scraped HTML as well as a generated feedgen FeedEntry. The data is saved in a dictionary with the current date as key, so multiple scrapes during the same day doesn't save a new entry, they only update the existing one.
mrks --regenerate
Iterates through the saved lists and re-generates FeedEntry's from the raw HTML, in case you've made some changes in the HTML template or so, and want them applied retroactively.
WSGI
mrks.wsgi contains a beautifully simple WSGI application, that simply outputs an RSS feed based on the data currently saved.
Cron
Crontab to run --scrape every Monday at midnight:
0 0 * * 1 cd /home/robert/mrkoll-scraper && /home/robert/mrkoll-scraper/venv/bin/mrks -s
Metadata
Release files for mrkoll-scraper 0.3.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| mrkoll-scraper-0.3.4.tar.gz | 5.5 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| mrkoll_scraper-0.3.4-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 23.7 kB
Release files / mrkoll-scraper-0.3.4.tar.gz
| Download URL | mrkoll-scraper-0.3.4.tar.gz |
|---|---|
| Size | 5.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
db0482b89f6a13c7e324b26a7b11b4e63e59b88a48ed74e32bc5e88373ba0897
|
|
BLAKE2b-256 checksum How to use checksums |
d0cd550ae570a78675bdac3c31467c47672f88847276c3b3b202de88528824ad
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/44.0.0 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.8.10
|
Release files / mrkoll_scraper-0.3.4-py3-none-any.whl
| Download URL | mrkoll_scraper-0.3.4-py3-none-any.whl |
|---|---|
| Size | 18.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
813714eec597ed1754273226509e9b5f538856d84f87dd2e995d77a2e2f33d3e
|
|
BLAKE2b-256 checksum How to use checksums |
88487f73323c11d503c997bca8e9fd5e8de05cb34c770a34acaccbe4d040be5f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/44.0.0 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.8.10
|