SkillAgentSearch skills...

ProthomAloScraper

A python script to scrap articles from Prothom Alo with the Headline, Category, URL, and Summary

Install / Use

/learn @KhanShaheb34/ProthomAloScraper

README

ProthomAloScraper

A python script to scrape all article with title, category, summary (if available) and URL from Prothom Alo

To get help run: python scraper.py -h or python scraper.py --help

Documentation:

usage: python scraper.py [-h] [--write-interval WRITE_INTERVAL]
                         [--verbose VERBOSE]
                         start end filename

Scrape articles from Prothom Alo

positional arguments:
  start                 Starting article ID from Prothom Alo
  end                   Ending article ID from Prothom Alo
  filename              Filename for the csv file

optional arguments:
  -h, --help            show this help message and exit
  --write-interval WRITE_INTERVAL
                        Write to file after every interval (default 25)
  --verbose VERBOSE     0 = False, 1 = True (default 1)

Give an starting id, ending id and a filename, the script will scrape all the articles from given ID and save them to filename.csv

View on GitHub
GitHub Stars11
CategoryDevelopment
Updated1y ago
Forks4

Languages

Python

Security Score

80/100

Audited on Sep 7, 2024

No findings