Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

simonw/git-scraper-template

Open more actions menu

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
13 Commits
 
 
 
 
 
 

Repository files navigation

git-scraper-template

Template repository for setting up a new Git scraper using GitHub Actions.

How to use this

Visit https://github.com/simonw/git-scraper-template/generate

Pick a name for your new repository, then paste the URL of the page you would like to take scrape into the description field (including the http:// or https://). JSON works best, but any URL will be fetched and saved.

Then click Create repository from template.

Your new repository will be created, and a script will run which will do the following:

  • Add a scrape.sh script to your repository which uses curl via the ./download.sh script to fetch and save the URL you requested
  • Run that ./scrape.sh command and commit the result to the repository
  • Configure a schedule to run this script once every 24 hours

You can edit scrape.sh to customize what is scraped, and you can edit .github/workflows/scrape.yml to change how often the scraping happens.

If you want to use Python in your scraper you can uncomment the relevant block in scrape.yml and add a requirements.txt file to your repository containing any dependencies you need.

About

Template repository for setting up a new git scraper

Topics

Resources

Stars

Watchers

Forks

Contributors

Languages

Morty Proxy This is a proxified and sanitized view of the page, visit original site.