jack-mil / bing-rewards

A script to automate daily Bing rewards points
MIT License
177 stars 23 forks source link

Search URL Fix #39

Closed jungx098 closed 9 months ago

jungx098 commented 9 months ago

This fix adds FORM to search queries. Bing has begun awarding points only for queries that include FORM.

kkrsharma commented 9 months ago

hehehe &FORM=HDRSC1

jack-mil commented 9 months ago

So I am looking into this. It looks like you are right, and the search urls are full of all sorts of garbage tracking and stuff now. Example from using the search box on bing.com: https://www.bing.com/search?q=what+is+a+url&qs=n&form=QBRE&sp=-1&ghc=1&lq=0&pq=what+is+a+url&sc=11-13&sk=&cvid=D5256183F28141A289B378059D88D80A&ghsh=0&ghacc=0&ghpl=

The form parameter seems to be random each time? Can we just pick a constant value, or does this need to be randomized? Have you all noticed any patterns? I don't use this tool any more personally, and I especially don't use bing/edge since it got all filled with AI garbage.

jungx098 commented 9 months ago

The form parameter seems to be random each time?

No. Fixed for browser search engines.
For instance, Chrome Bing search URL is:

https://www.bing.com/search?q=%s&PC=U316&FORM=CHROMN

Check your chrome://settings/searchEngines?search=search+engine

Probably different values for different browsers, but not random.

I am not sure about Bing submission clicks. They could return different or random (?) FORM values.

jack-mil commented 9 months ago

I am getting form=QBLH accross all my browsers right now. (Brave, Firefox, Edge) when searching in the box on bing.com home page

jungx098 commented 9 months ago

I think that's the value provided by bing.com. If you put your search keyword in the address bar and press enter, you will see the default search URL made by your browser.

jack-mil commented 9 months ago

So which do you think will be the best to go with? Probably one that matches the user agent (if that is even still working). I think the default is a Edge browser/mobile user agent.

jungx098 commented 9 months ago

I think any value is fine. But, this project proposes Chrome for the browser, so CHROMN seems to be right.

I think a more general approach would be to just put the search keyword, instead of the URL, in the address bar. If you set the default search engine to Bing, the browser will construct the appropriate URL.

On Nov 11, 2023, at 6:18 PM, jack-mil @.***> wrote:

So which do you think will be the best to go with? Probably one that matches the user agent (if that is even still working). I think the default is a Edge browser/mobile user agent.

— Reply to this email directly, view it on GitHub https://github.com/jack-mil/bing-rewards/pull/39#issuecomment-1806953630, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACFDI5WVWLJB3WONZHZDWI3YEAIUDAVCNFSM6AAAAAA7HODWESVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQMBWHE2TGNRTGA. You are receiving this because you authored the thread.

jack-mil commented 9 months ago

True, that would probably work best. But, I think requiring Bing to be the default search engine would be pretty bad. IDK about you, but I can't stand using it. And if someone regularly uses Bing be default, they probably don't need this tool. Is there a way to trigger a search with a particular search engine in Chrome without overriding the default engine?

jungx098 commented 9 months ago

Is there a way to trigger a search with a particular search engine in Chrome without overriding the default engine?

That’s interesting question. The following approach seems to work for this project.

https://superuser.com/questions/1021124/toggle-between-search-engines-in-google-chrome Toggle between search engines in Google Chrome superuser.com

On Nov 11, 2023, at 6:57 PM, jack-mil @.***> wrote:

True, that would probably work best. But, I think requiring Bing to be the default search engine would be pretty bad. IDK about you, but I can't stand using it. And if someone regularly uses Bing be default, they probably don't need this tool. Is there a way to trigger a search with a particular search engine in Chrome without overriding the default engine?

— Reply to this email directly, view it on GitHub https://github.com/jack-mil/bing-rewards/pull/39#issuecomment-1806963226, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACFDI5SYHMFJRZRBK44372TYEANITAVCNFSM6AAAAAA7HODWESVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQMBWHE3DGMRSGY. You are receiving this because you authored the thread.

jack-mil commented 9 months ago

Ok, I figured there might be something like that. I use Firefox mainly, and we can use @bing or similar to invoke custom search engines, configured in settings. Using this on Chrome/Brave would require additional user setup it seems like. One alternative would be to recommend Edge as the search engine. I haven't tested that in a while however, so mobile user agent might not take effect anymore.

Actually, I am unsure if that feature works on any browser now since the changes to Bing

tobfromme commented 9 months ago

Rather than include just the update for the default value, I would counter that it should also read the config file for search URL (issue 38), which is the root complaint in the issue. I have working code on my local system that reads the config file for the search-url parameter, and if it doesn't exist then uses the default. I don't mind sharing but not sure how to do so (I'm not a git expert).