Парсер Habr
Project description
habraparse
Библиотека работы с статями с Habr сделана на основе habraparse
Пример использования
from habraparse.parser.classic import HabrParser
from habraparse.renderer.classic import HabrArticleRenderer
topics = ["750270", "750608", "750794", "752132", "751002", "751060"]
for topic in topics:
parser = HabrParser(topic_id=topic)
a = parser.parse()
renderer = HabrArticleRenderer()
renderer.render(f"article_{topic}.pdf", a)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
habraparse-1.0.0.tar.gz
(13.3 kB
view details)
Built Distribution
File details
Details for the file habraparse-1.0.0.tar.gz
.
File metadata
- Download URL: habraparse-1.0.0.tar.gz
- Upload date:
- Size: 13.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.8.13
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6766cc86d4fb35610396825e033c92b3cbf8f9f353dc7e9eb2eb0e12ff4c9033 |
|
MD5 | e08b5b50a9700b108209e5ce38fcf766 |
|
BLAKE2b-256 | 6bf0581259ff5b13603b0a58c7ca62fd718e1573fcca046ba0ca7eb3bd83d1ce |
File details
Details for the file habraparse-1.0.0-py3-none-any.whl
.
File metadata
- Download URL: habraparse-1.0.0-py3-none-any.whl
- Upload date:
- Size: 16.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.8.13
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 20796745b5cdefc851e17380f69043355b07c643fe8e5a92738b95dad210f2a9 |
|
MD5 | ad62e34543c045832dbab3aa16700dc5 |
|
BLAKE2b-256 | 863fc566c16c2582c0ec91de3f2fe89e554be8073db08503a81cb6a364df0e9f |