https://github.com/danchik12/habr_scraping
Parsing Habr articles and saving in csv format
https://github.com/danchik12/habr_scraping
csv fake-useragent numpy pandas parser python3
Last synced: 2 months ago
JSON representation
Parsing Habr articles and saving in csv format
- Host: GitHub
- URL: https://github.com/danchik12/habr_scraping
- Owner: Danchik12
- License: mit
- Created: 2021-08-08T14:45:24.000Z (almost 5 years ago)
- Default Branch: Kizune
- Last Pushed: 2021-12-08T14:58:52.000Z (over 4 years ago)
- Last Synced: 2025-06-18T21:40:51.491Z (about 1 year ago)
- Topics: csv, fake-useragent, numpy, pandas, parser, python3
- Language: Python
- Homepage:
- Size: 6.21 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# English! #
The script collects articles from Habr and saves them in the data.csv file.
I used the requests library built in Python to send the request and receive the response.
Python 3.9
* [documentation requests](https://2.python-requests.org/en/master/)
* [documentation BeautifulSoup](https://www.crummy.com/software/BeautifulSoup/bs4/doc/)
Run parser.py and wait
`python parser.py`
***
Result:
[image](https://user-images.githubusercontent.com/76254668/128637380-4b716a81-52ea-4614-8faf-2c2c05415822.png)
# Русский! #
Скрипт собирате статьи из Habr и сохраняет в файле data.csv.
Для отправки запроса и получения ответа я использовал библиотеку requests,встроенную в Python.
Python 3.9
* [документация requests](https://2.python-requests.org/en/master/)
* [документация BeautifulSoup](https://www.crummy.com/software/BeautifulSoup/bs4/doc/)
Запустите parser.py и ждите
`python parser.py`
***
Результат:
[изображение](https://user-images.githubusercontent.com/76254668/128637380-4b716a81-52ea-4614-8faf-2c2c05415822.png)