Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit ead6f83

Browse files
readme file added
1 parent 47b86dd commit ead6f83

File tree

1 file changed

+34
-0
lines changed

1 file changed

+34
-0
lines changed

‎Dev.to Scraper/README.md‎

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
# Dev.to Scrapper
2+
Running this Script would allow the user to scrape any number of articles from [dev.to](https://dev.to/) from any category as per the user's choice
3+
4+
## Setup instructions
5+
In order to run this script, you need to have Python and pip installed on your system. After you're done installing Python and pip, run the following command from your terminal to install the requirements from the same folder (directory) of the project.
6+
```
7+
pip install -r requirements.txt
8+
```
9+
As this script uses selenium, you will need to install the chrome webdriver from [this link](https://sites.google.com/a/chromium.org/chromedriver/downloads)
10+
11+
Once the installation is complete, you need to add the webdriver in the path in the following line:
12+
```
13+
driver = webdriver.Chrome('<Path to chrome webdriver >')
14+
```
15+
16+
After satisfying all the requirements for the project, Open the terminal in the project folder and run
17+
```
18+
python scraper.py
19+
```
20+
or
21+
```
22+
python3 scraper.py
23+
```
24+
depending upon the python version. Make sure that you are running the command from the same virtual environment in which the required modules are installed.
25+
26+
## Output
27+
The user needs to enter Category and Number of articles
28+
![User is asked for input](https://i.postimg.cc/Qd8YfjXj/dev-scrapper1.png)
29+
30+
The scraped pdf files get saved in the folder in which the script is run
31+
![Files saved in folder](https://i.postimg.cc/FzXD34W5/dev-scrapper2.png)
32+
33+
## Author
34+
[Ayush Jain](https://github.com/Ayushjain2205)

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /