-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'origin/master' into master
- Loading branch information
Showing
1 changed file
with
21 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
# OSM Scraping | ||
Basic scripts for scraping player datas from Online Soccer Manager | ||
|
||
## How To Install? | ||
Only pip dependency is the Selenium package. It can be installed by: | ||
``` | ||
pip install selenium | ||
``` | ||
or | ||
``` | ||
pip install -r requirements.txt | ||
``` | ||
Other dependency is the ChromeDriver. It can be downloaded from https://chromedriver.chromium.org/downloads. </br> | ||
This project is developped using version 91.0.4472.19 and can be found in https://chromedriver.storage.googleapis.com/index.html?path=91.0.4472.19/ </br> </br> | ||
Download the file and copy it into the project's directory. <b>Do not rename the file.</b> If you are on Linux or OS X, change <i>chromedriver.exe</i> to <i>chromedriver</i> in both scripts. | ||
</br> | ||
After setting up the environment, run the Login script. If a chrome window is opened and you can view the OSM's webpage, you have set up your environment correctly </br> | ||
## How To Use? | ||
Run the Login script. Navigate to the login page. Enter your credentials. I suggest using a burner account. OSM's servers can block the account because of exceeded number of requests. <br/> <br/> | ||
When login is completed and your account is accesible, close the window, and wait for the script to terminate. The login cookies are saved as a pickle file. </br> | ||
Navigate to the project directory. If there is a file called <i>cookie.pkl</i> you may run the main script. </br> |