Skip to content
master
Switch branches/tags
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
src
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

auto-pull-req-new-mnufc

Why

  • ❤️ - MNUFC
  • Automated updates to my blog (in the MNUFC update)
  • Scraping content without manual intervention

How

  • Using basic node web scraping techniques to grab the content from the mnufc page
  • Get the repo/subfolder for the MNUFC posts from mutmatt.github.io
  • Diff what exists with what is new
  • Create new html posts using the highlight videos
  • Using the github api create new files and create a PR to the mutmatt.github.io repo

Dev

This is a node/typescript based project.

  • Git Clone
  • npm install
  • touch .env
  • echo "GITHUB_ACCESS_TOKEN=[Your Personal Access Token]" > .env
  • npm run start
    • That will run ts-node index (this could be run manually if you really want to).

This will run the entirety of the #How section and create any PRs to the mutmatt.github.io repo.

Testing

Ha

How this functions

This app is run via GitHub Actions. There are two trigger methods

  1. pushing to this repo
  2. cron at 03:00 and 15:00 UTC

About

This repo is used to automate web scraping of the MNUFC to add posts to another repo.

Topics

Resources

Sponsor this project