GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - rstuart85/bplextractor: Extract BPL table information from SportingPulse. Theoretically could work on any FB league table on SportingPulse and possibly other zones competitions as well.

BranchesTags
Open more actions menu

Latest commit

 

History

8 Commits
8 Commits

Folders and files

NameName
Last commit message
Last commit date
bpl
bpl
 
 
.gitignore
.gitignore
 
 
README.md
README.md
 
 
scrapy.cfg
scrapy.cfg
 
 

Repository files navigation

bplextractor

Extract BPL table information from SportingPulse. Theoretically could work on any FB league table on SportingPulse and possibly other zones competitions as well.

HowTo

To use this library, you first need to double check the URLs in bpl/spiders/sporting_pulse_spider.py. It is configured to use the print view of tables on SportingPulse to extract the information (including team name). However, because the SportingPulse website sucks, you sometimes need to put the round number into the URL.

Once you are happy with the URLs in sporting_pulse_spider.py, you can then run the scrape process using:

scrapy crawl sporting_pulse -o tables.json -t json

This will output each line of all configured tables as a JSON object. That obect will contain the competitin the entry refers to allowing to to re-assemble the tables.

The logan_mdp_builder.py script under the BPL folder takes the tables.json generated above and colates a table for each league plus he BPL Relegation table based on the 5,3,2,1 model. It is formated in such a way that I can copy and paste the output into Scribus for the Logan Lightning Match Day Program.

Requirements

You need to have scrapy installed to use this code.

Warning

Use this code at your own risk. It is scraping a live website!

About

Extract BPL table information from SportingPulse. Theoretically could work on any FB league table on SportingPulse and possibly other zones competitions as well.

Resources

Readme
Activity

Stars

0 stars

Watchers

1 watching

Forks

0 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.