-
Notifications
You must be signed in to change notification settings - Fork 314
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Remove support for random_attributes and browser_settings #745
Comments
Hi @englehardt, I am interested in working on this task, would you please guide me what needs to be done here... |
Hi @ankushduacodes, |
@vringar, i did clone it but when i ran demo.py it game me some module errors, and i could not find any requirements.txt is there some other way to install the dependencies? |
What are you trying to achieve with this issue and why do we need to remove some attributes and what are those attributes @vringar |
I'd suggest reading the installation section of our README.md on how to get setup.
These attributes were originally intended to help us obfuscate the fact that we were running an automated crawl with Firefox. |
hi @vringar, I tried running demo.py multiple times, it runs properly except for I get two exceptions
I can see that these exceptions are interrelated to each other, any idea what this is about? (PS: I do get the database on my desktop tho) |
Hey @ankushduacodes, |
@ankushduacodes How is this coming along? Do you need any kind of support from our side? |
@vringar, I haven't been able to get around this issue, I have been quite busy the last two week and will be for another few weeks. I will ask for more info on this whenever I get around to dealing with this issue. I hope it's fine |
Of course that fine! Sorry if I seemed pushy. I just wanted to check in and make sure that you weren't blocked on something from our side |
@vringar oh no no, dont worry about it, you weren't pushy. |
@vringar Hi, Thank you for your patience on this issue, I will start working on it soon. |
While I would like to say yes to using Python3.9 features, however I think it's a bit too early to use this version, as conda (our package manager of choice) is currently using Python3.8, so I think you shouldn't use these features yet. |
Okay @vringar got it, I was also wondering that are we just removing wherever there are variables named "random_attributes", "browser_settings", "browser_params", "ua_string" and "screen_res"? or are we modifying the use of them? And also Can you please point me to the file which is the entry to the whole program? (looking for the main function here) |
We want to remove all pieces of code, that use |
@vringar is there a way to run all the tests at once or do I have to run all the tests manually (PS: I am sorry if this seems to be a stupid question, as this is my first time contributing to a big project like this) |
@ankushduacodes don't worry about asking questions! I'm happy to help.
Please note that our tests are quite slow, on my machine it can take up to 45 min, so it's completely reasonable to push and see if CI passes since the tests are parallelized on there |
@vringar I have been running the tests on my local machine and so far one of the tests have failed which is |
|
@vringar I had just made a pull request to run tests on CI as per your recommendation... Multiple tests have failed, Could you please have a look at what's going on. |
Our CI configuration also enforces that the code is formatted uniformly and the tests are formatted uniformly. |
@vringar Do you have any more beginner-friendly issues that I can work on, not just in OpenWPM, any projects that you are looking over? I would love to work on them |
@ankushduacodes Thank you for expressing interest in further working with me. I currently spend most of my time working on OpenWPM, so most issues I can offer you will be here. |
@vringar I would love to take part in more issues related to OpenWPM. Please ping me whenever there is something I can help with. |
These are a vestige of an unmaintained attempt to allow users to randomize some of the browser's properties. It's incomplete (#17), unsupported (#620), and untested.
Here are some code pointers:
https://github.com/mozilla/OpenWPM/blob/e989ce5f74c1737185c89a33bde4015b55df066a/automation/Commands/profile_commands.py#L14-L35
https://github.com/mozilla/OpenWPM/blob/master/automation/DeployBrowsers/user_agent_strings.txt
https://github.com/mozilla/OpenWPM/blob/master/automation/DeployBrowsers/screen_resolutions.txt
https://github.com/mozilla/OpenWPM/blob/e989ce5f74c1737185c89a33bde4015b55df066a/automation/DeployBrowsers/deploy_firefox.py#L80-L97
https://github.com/mozilla/OpenWPM/blob/e989ce5f74c1737185c89a33bde4015b55df066a/automation/DeployBrowsers/deploy_firefox.py#L105-L110
Any future anti-bot circumvention work should be tracked in #448
The text was updated successfully, but these errors were encountered: