Skip to content

Commit 8c201b0

Browse files
Update README.md
Updated the installation and run instructions
1 parent dd3bd2f commit 8c201b0

File tree

1 file changed

+31
-1
lines changed

1 file changed

+31
-1
lines changed

README.md

Lines changed: 31 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,32 @@
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+

0 commit comments

Comments
 (0)