Skip to main content

Python package for scraping university information

Project description

Build Status Version License

A simple web scraping/crawler tool for university sites.

pip install university-scraper

then:

from university_scraper import available, init

# Get list of available universities
print(available())

# Give the abbreviation as a string, from the list of available universities
scraper = init('USYD')

scraper.programs
scraper.units

# Details can be retrieved for a certain program or unit using the respective kwargs
scraper.program_detail(...)
scraper.unit_detail(...)

Scrapers available for:

Contribute

Part of the reason I want this open sourced is because if a university makes a design change, the scraper for it should be modified.

If you spot a design change (or something else) that makes the scraper unable to work for a given site - please fire an issue ASAP.

If you are a programmer, PRs with fixes are warmly welcomed and acknowledged with a virtual :beer:

If you want a scraper for a new university added

  • Open an Issue providing us the university name, as well as the direction on how to get the neccessary details

    • Unit details
    • Program details
  • You are a developer and want to code the scraper on your own feel free to make a PR for us to review :)

For Devs / Contribute

Assuming you have python3 installed, navigate to the directory where you want this project to live in and drop these lines

    git clone https://github.com/giulianocelani/university-scraper.git &&
    cd university-scraper &&
    pip install pipenv &&
    pipenv shell &&
    pipenv install &&
    python -m unittest -v

Acknowledgement

Project was built with reference to https://github.com/hhursev/recipe-scrapers

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

university_scraper-0.0.2.tar.gz (6.9 kB view details)

Uploaded Source

Built Distribution

university_scraper-0.0.2-py3-none-any.whl (9.6 kB view details)

Uploaded Python 3

File details

Details for the file university_scraper-0.0.2.tar.gz.

File metadata

  • Download URL: university_scraper-0.0.2.tar.gz
  • Upload date:
  • Size: 6.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/50.3.0 requests-toolbelt/0.9.1 tqdm/4.49.0 CPython/3.8.5

File hashes

Hashes for university_scraper-0.0.2.tar.gz
Algorithm Hash digest
SHA256 3adbd5b2d9b5d004e4a7887a6c2e9b3a0f9a950554596c81602e7df47c48770c
MD5 cc05c7cc9ffb5aa0e09f2b8a174c98f4
BLAKE2b-256 620e390c86defb903975c443c692f407b89c359c3019e7509d3869962180fb3f

See more details on using hashes here.

File details

Details for the file university_scraper-0.0.2-py3-none-any.whl.

File metadata

  • Download URL: university_scraper-0.0.2-py3-none-any.whl
  • Upload date:
  • Size: 9.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/50.3.0 requests-toolbelt/0.9.1 tqdm/4.49.0 CPython/3.8.5

File hashes

Hashes for university_scraper-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 26b246486ffa170c0eb825f4b5414513d9eb3c8e182691620458fa7bf7cc2e35
MD5 05ae05484f2a738b363f94f2ff2bb724
BLAKE2b-256 f309dacdae8613734d8a65af11bc1f7da9073e48893bb0f3312c474620b1df98

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page