The ultimate library for data scientist to scrape data from https://www.lefaso.net
Project description
lefaso-net-scraper
Description
lefaso-net-scraper is a robust and versatile Python library designed to efficiently extract articles from the popular online news source, lefaso.net. This powerful scraping tool allows users to effortlessly collect article content and data from Internet users’ comments on lefaso.net.
Data Format
Field | Description |
---|---|
article_topic | article topic |
article_title | article title |
article_published_date | article published date |
article_origin | article origin |
article_url | article url |
article_content | article content |
article_comments | article comments |
Installation
- With poetry
poetry add lefaso-net-scraper
- With pip
pip install lefaso-net-scraper
Usage
# coding: utf-8
from lefaso_net_scraper import LefasoNetScraper
section_url = 'https://lefaso.net/spip.php?rubrique473'
task = LefasoNetScraper(section_url)
data = task.run()
Save data to csv
# coding: utf-8
import pandas as pd
df = pd.DataFrame.from_records(data)
df.to_csv('path/to/df.csv')
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
Built Distribution
Close
Hashes for lefaso_net_scraper-0.1.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 062c48f3050f1a95432a9429308c815b96c30dba2a0e507874483146ffdb0e21 |
|
MD5 | 96dd201022a36ecd9142427a33b32548 |
|
BLAKE2b-256 | f082f31106d26d36b0779c826a13d7079696d61fbed69983b3c89ec10d11d7c1 |