Skip to content

A CLI tool which uses wget to bulk download CAIE Past Papers; written in Rust

License

Notifications You must be signed in to change notification settings

famedaxolotl/gce-wget

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

37 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

gce-wget

GitHub crates.io Total Downloads License: MIT

v1.0.5 What's new

Patched: more paper types now supported

v1.0.4 What's new

Patched: Not working when subject name has '(AS/A level only)' in it

gce-wget is a specialized tool to bulk download IGCSE, O Levels and AS/A Levels papers from papers.gceguide.net, skipping the need to write regexes and make link files. This tool requires wget to be pre-installed on the machine.

Note that this program and its creator have absolutely no affiliation with GCE Guide. This program simply makes using wget on the GCE Guide website easier.

Installation

Use any of the following methods.

1. Downloading binary

  • You can download the latest binary from the releases page.

  • Move the binary gce-wget to /usr/bin with

sudo mv Downloads/gce-wget /usr/bin

2. Using Cargo

If you are a Rust programmer and have Cargo installed, simply run the following:

cargo install gce-wget

This will install the binary from crates.io

3. Building from GitHub

If you have Cargo installed, run the following commands

git clone https://github.com/famedaxolotl/gce-wget

cd gce-wget

cargo build --release

Now, run with cargo run or move the binary to /usr/bin with:

sudo mv target/release/gce-wget /usr/bin

Usage

Use gce-wget --help to see detailed help page.

Note

When running, gce-wget creates a .temp-link-file in ~/Downloads/to store links. This will be deleted automatically after download is complete (unless the process is aborted) and can be ignored.

The basic command structure (no options) is:

gce-wget [SUBJECT_CODE] [YEARS]

For example, gce-wget 0620 2021,2022 will download all papers of IGCSE Chemistry from 2021 and 2022

To selectively download papers, use the -t (--types) and -c (--codes) options, which allow you to enter comma-seperated lists of paper types and codes.

For example:

gce-wget 0620 -t ms,qp -c 21,41 2022,2023

This downloads all Variant 1 extended MCQ and Theory papers of IGCSE Chemistry of years 2022 and 2023, and their respective marking schemes.

To download O Levels papers, use the -o (--o-level) option like so (this is necessary):

gce-wget 5070 -o -t ms,qp -c 11,12 2021

This downloads all Paper 11 and Paper 12 question papers and marking schemes from O Levels Chemistry 2021.

Use the -i (--igcse) and -a(--a-level) options if, for example, the programs seems to searching the wrong qualification and is unable to find the subject, even though the correct code was entered.

All downloaded files will be found in the papers.gceguide.cc folder in your Downloads.

Tip

To understand the paper naming system, see this..

Limitations

  • gce-wget cannot bulk download papers from mutiple different subjects; only one subject code must be passed each time.
  • gce-wget may not recognize certain valid paper types. Please report such instances. The paper types currently supported are qp, ms, in, er, gt, tr, ci, qr, rp, sf and tn.

About

A CLI tool which uses wget to bulk download CAIE Past Papers; written in Rust

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages