essandess / isp-data-pollution

ISP Data Pollution to Protect Private Browsing History with Obfuscation
MIT License
590 stars 53 forks source link

Latest version throwing syntax errors on startup #32

Open screwzloose opened 6 years ago

screwzloose commented 6 years ago
user@ubuntu:~/isp-data-pollution$ sudo python3 ./isp_data_pollution.py 
  File "./isp_data_pollution.py", line 218
    print(f'This is ISP Data Pollution 🐙💨, Version {__version__}')

SyntaxError: invalid syntax

Is python3.6 needed to run string-formatting paradigms?

essandess commented 6 years ago

Yes, and possibly more importantly for chromedriver compatibility, though I haven't checked.

On other fronts I'm being pushed to move to 3.7.

screwzloose commented 6 years ago

Thanks, after installing 3.6 I was up and running!

Quick question: What does "timeout" and "short_timeout" change? Also, is there a way to randomize the request interval? e.g. Make a HTTP request, waits 2 min, requests, waits 5 min, etc?

essandess commented 6 years ago

timeout and short_timeout control how long the main process waits for a browser child process response before killing its child and moving on. I wouldn't mess with these unless you understand the specifics or like to watch a zillion headless Chrome browsers launched in the background.

The time differences between the requests are already randomized. Grep for the .chi2_mean_std method. The current parameters are hardcoded in specific calls roughly based on average browsing habits.

screwzloose commented 6 years ago

Outstanding, thank you sir.