https://github.com/abdnh/farlex-scraper
A Python script to scrape quizzes from The Farlex Grammar Book
https://github.com/abdnh/farlex-scraper
farlex scraper
Last synced: 3 months ago
JSON representation
A Python script to scrape quizzes from The Farlex Grammar Book
- Host: GitHub
- URL: https://github.com/abdnh/farlex-scraper
- Owner: abdnh
- License: cc0-1.0
- Created: 2022-04-12T01:16:56.000Z (about 3 years ago)
- Default Branch: master
- Last Pushed: 2022-04-12T02:07:42.000Z (about 3 years ago)
- Last Synced: 2025-01-24T07:29:50.669Z (5 months ago)
- Topics: farlex, scraper
- Language: Python
- Homepage:
- Size: 4.88 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
A Python script to scrape quizzes from [The Farlex Grammar Book](https://www.thefreedictionary.com/The-Farlex-Grammar-Book.htm).
## Usage
```
$ python farlex.py --help
usage: farlex.py [-h] [--page PAGE | --section {1,2,3}]optional arguments:
-h, --help show this help message and exit
--page PAGE download a specific page by its URL slug (e.g. Parts-of-Speech)
--section {1,2,3} download a whole section by its number (1: Grammar, 2: Punctuation, 3: Spelling and Pronunciation)
```Quizzes are written in CSV format to the quizzes directory as `(question, answer, page_url)`.
Mainly meant to be imported to [Anki](https://apps.ankiweb.net/).Downloaded pages are cached in the pages directory.