Skip to content

Script to fetch articles created in the last month for the purposes of Site News.

License

Notifications You must be signed in to change notification settings

scpwiki/news-fetch

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

news-fetch

Script to pull article information for a given month. Outputs in both JSON and CSV formats.

Requires Python 3.7+. Available under the terms of the MIT License.

Setup

Install dependencies

$ pip3 install --user -r requirements.txt

Execution

You can run the script for a particular month like so:

$ ./fetch_articles.py [month]

The month parameter should be an ISO date string from the first of the month you wish to fetch. So if you want all articles created in March of 2019, you would put 2019-03-01.

All generated files will be in output/. You can clear it out using:

$ ./clean.sh

About

Script to fetch articles created in the last month for the purposes of Site News.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published