Skip to content
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

Add command line option to do either mobile or desktop search only #144

Merged
merged 3 commits into from
Jul 19, 2024

Conversation

toovoo
Copy link

@toovoo toovoo commented Jul 10, 2024

Added command line option for user to do searches only with desktop browser or mobile browser. Default behavior without setting the command line option is running both. I removed the random pauses before and after sleep because I think it is redundant when we already have delays set in the Searches class but please do let me know if it vital for avoiding suspicions. I also moved the step for reading articles into mobile searches to split up the tasks a bit. I'll mark this as a draft for now since I'm still testing and want to touch up logging a bit but please do leave suggestions and feedback 😃

Edit: Now updated to be more in line with the existing code in the develop branch. Please disregard some of the statements above.

@cal4
Copy link
Collaborator

cal4 commented Jul 10, 2024

Looks good to me, I'd just request we merge this to develop which is upstream of master. Lets us test out a bit and avoids having to merge back to develop which'll most likely cause conflicts.

#137 is close to stable, hoping to release to master soon (we can totally wait on these changes).

@toovoo toovoo changed the base branch from master to develop July 10, 2024 03:52
@toovoo toovoo force-pushed the mobile-desktop-flag branch from 38f6e7c to 1875267 Compare July 10, 2024 04:51
@toovoo
Copy link
Author

toovoo commented Jul 10, 2024

Looks good to me, I'd just request we merge this to develop which is upstream of master. Lets us test out a bit and avoids having to merge back to develop which'll most likely cause conflicts.

#137 is close to stable, hoping to release to master soon (we can totally wait on these changes).

Thank you for taking a look and letting me know there is a develop branch. I totally did not notice that, that's my bad. Anyways, rebased and updated the code to match with what we have in the develop branch. I'm going to test this more tomorrow so leaving it as a draft for now.

@cal4
Copy link
Collaborator

cal4 commented Jul 10, 2024

Looks good to me, I'd just request we merge this to develop which is upstream of master. Lets us test out a bit and avoids having to merge back to develop which'll most likely cause conflicts.
#137 is close to stable, hoping to release to master soon (we can totally wait on these changes).

Thank you for taking a look and letting me know there is a develop branch. I totally did not notice that, that's my bad. Anyways, rebased and updated the code to match with what we have in the develop branch. I'm going to test this more tomorrow so leaving it as a draft for now.

All good, dev branch's very new. I need to update the README.

This commit removes the startingPoints variable in executeBot()
since it will only be needed in the two functions that execute the
searching. Also ensure that startingPoints is populate in
mobileSearch().
@cal4
Copy link
Collaborator

cal4 commented Jul 15, 2024

Looks good

@toovoo toovoo marked this pull request as ready for review July 16, 2024 02:34
@toovoo
Copy link
Author

toovoo commented Jul 16, 2024

Hands-on testing with selecting either desktop search or mobile search or both went smoothly. I ran into an issue with the searches not scoring points and basically went through all 8 retires. This happens rather randomly. Sometimes it's on the 8th search term group and then basically all search terms after that will fail and not get points. Some other times it's the last search term group. I'll poke around more using a new account to see what the cause.

@cal4
Copy link
Collaborator

cal4 commented Jul 16, 2024

Gotcha, that's happening in develop as well. From what I can tell, rewards count on the server side isn't always immediately reflected, but delayed.

Either way should be good to merge.

@cal4 cal4 merged commit 0ee3c32 into klept0:develop Jul 19, 2024
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants