You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+7-9Lines changed: 7 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -5,22 +5,23 @@ I've been solving LeetCode problems recently, and when I realized that why not p
5
5
6
6
At the begining, I found a useful dependency in python called ```BeautifulSoup```, but it seems that it is not able to deal with dynamic website, which means that if some elements shown in a website is controlled by javascript. After serching for a while, I found ```selenium```, which automatically controll website like a human, but it seems that it is unefficient to use selenium to parse data in html, so I combine BeautifulSoup and selenium to finish this project.
7
7
8
-
#### install dependencies
8
+
#### Install dependencies
9
9
```
10
10
# pip install bs4
11
11
# pip install beautifulsoup
12
12
# pip install selenium
13
13
```
14
14
15
-
#### install ChromeDriver
15
+
#### Install ChromeDriver
16
16
This project use [chromedriver](http://chromedriver.chromium.org/) in selenium, before running this project, you have to add the downloaded executable file to PATH enviroment variable.
17
17
18
18
#### Setting
19
19
You have to modify some of the variable in the project as shown below.
@@ -29,7 +30,4 @@ After executing the project, each LeetCode problem that you've solved will have
29
30
I tried this project on Windows10 & Ubuntu, and it works fine.
30
31
31
32
#### To Do
32
-
there are still some weired part that i haven't solved, but it's not affecting the result
33
-
1. web page loaded problem: it seems that there is some problem to wait for the page fully loaded while using selenium, so I currently use ```time.sleep()```, which is the worst solution.
34
-
35
-
2. Currently, this project will only save the latest accepted submission code.
33
+
1. Currently, this project will only save the latest accepted submission code.
0 commit comments