Skip to content

Commit

Permalink
Merge branch 'master' of github.com:bartvbl/itslearning-dumper
Browse files Browse the repository at this point in the history
  • Loading branch information
bartvbl committed Jun 20, 2017
2 parents efdbff0 + 4a2af8f commit 2098c4e
Showing 1 changed file with 4 additions and 22 deletions.
26 changes: 4 additions & 22 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,35 +55,17 @@ If you've never touched Python before, here's how to get the script running on W

6. Open the downloaded ZIP file, and find the "scrape.py" file in the "itslearning-dumper-master" folder. Extract this file to a folder of your choice.

7. (Optional) Open up the scrape.py file in a text editor (not Word, something like Notepad or Notepad++). We'll have to make a few edits before we can get started.
7. Navigate to the folder which contains the scrape.py file in Explorer

8. (Optional) Find the line in the scrape.py file saying:
8. Make sure no file in the folder is selected. Hold Shift, and right click on any place in the file window that is not occupied by a file. In the context menu that pops up, there should be an entry that says "Open command window here". A command prompt comes up.

output_folder_name = 'dump/'

9. (Optional) If you look in Computer, it shows the available hard drives. Windows always has a drive named "C", but there may be others too. If so, find one which has a decent amount of space available (some GB worth at least). Pick a drive and note its drive letter. This should preferably be a drive that is not "C" and has available space as I mentioned previously, but if you don't have anything else, fall back on to "C".

10. (Optional) Change the line mentioned in step 10 to the line shown below, where you replace "{drive letter}" with the drive letter you picked.

output_folder_name = '{drive letter}:\\dump\\'

For example, if you picked the "D" drive, you'd end up with this:

output_folder_name = 'D:\\dump\\'

11. (Optional) Save the file. Close the editor.

12. Navigate to the folder which contains the scrape.py file in Explorer

13. Make sure no file in the folder is selected. Hold Shift, and right click on any place in the file window that is not occupied by a file. In the context menu that pops up, there should be an entry that says "Open command window here". A command prompt comes up.

14. In the command prompt window, write:
9. In the command prompt window, write:

pip install requests lxml

And press enter. This installs two libraries which the script uses.

15. We're now ready to run the script. In the command prompt window, write:
10. We're now ready to run the script. In the command prompt window, write:

python scrape.py
Expand Down

0 comments on commit 2098c4e

Please sign in to comment.