File tree Expand file tree Collapse file tree 1 file changed +31
-1
lines changed
Expand file tree Collapse file tree 1 file changed +31
-1
lines changed Original file line number Diff line number Diff line change 11# GeeksForGeeksScrapper
2- Scrapes g4g and creates PDF
2+ Scrapes [ GeeksForGeeks] ( http://www.geeksforgeeks.org ) and creates html & PDF for chosen category along with syntax highlighting for the code.
3+
4+ ## Installation
5+ To use the scrapper, install the following:
6+
7+ ` $ sudo apt-get install wkhtmltopdf `
8+
9+ Then create venv
10+
11+ ` $ virtualenv /path/to/g4g-env `
12+
13+ Switch to venv
14+
15+ ` $ source /path/to/g4g-env/bin/activate `
16+
17+ Now install BeautifulSoup as:
18+
19+ ` $ pip install beautifulsoup4 `
20+
21+ or via package manager as:
22+
23+ ` $ sudo apt-get install python-bs4 `
24+
25+ ## Run the G4G_Scrapper
26+
27+ $ python g4g.py
28+
29+ Choose the category you want to scrape from the menu and wait for the magic to happen :)
30+
31+ You can find the output as ` G4G_<category_name>.html ` and ` G4G_<category_name>.pdf ` in the same directory.
32+
You can’t perform that action at this time.
0 commit comments