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

Just For those who don't know how to solve so called bugs~ #425

Open
2 tasks done
cmulittlechild opened this issue Jan 4, 2024 · 3 comments
Open
2 tasks done

Just For those who don't know how to solve so called bugs~ #425

cmulittlechild opened this issue Jan 4, 2024 · 3 comments
Labels
bug Something isn't working

Comments

@cmulittlechild
Copy link

Before submitting a bug report...

  • This bug wasn't already reported.
    (I have checked every bug report on GitHub)

Title

  • The title is no longer "[BUG] Title" and I edited it with the right error name.

Describe the bug

So many people encounter different errors when use Ms farmer, just like me, I come into ensuring you are logged in on bing, 2FA, stuck on entering password and so on, I try every methods to solve these problems, and change different versions, python, docker, docker compose, exe, none can work normally. But now, I know why these methods doesn't work. Even two persons have the same error logs, they may have definitely different exceptions, the logs just are the coders type there, but not the system really outputs. Finally, I use Vscode, add logs to every important lines of the code, if the code stuck here, terminal will output relative info, so I can detect which line is the root question.

Now, for the bugs about stuck in ensuring you are logged in on bing. After finish the process of logging in, the code will check if you have been logged in, it just open a website like www.bing.com-xxxxxxx, and then, if it redirect to the homepage of the bing but not to the login website, the code will think ok , you are logged in. just compare the website on your computer with www.bing.com, and this process in code is a while loop, till your website is www.bing.com, or it will continue to do this, so you can see one line log ensuring you are logged in on bing on terminal, but actually if you add log within the while loop, the terminal will display line after line logs. When I use -v parameter, the chrome just stuck in bing homepage, the terminal display line by line "checking if you have been logged in" which I type within the while loop, and I know this is the root question, i notice the chrome url is xx.bing.com, What a fucking thing. xx is just the country code, may be fr, cn or so on. after that I change www.bing.com to xx.bing.com, well, it works.

Except this, I also encounter other questions, some countries can't get google.com, the terminal will display 403 and the code will end up at an exception. I change getgoogletrends to trends of www.baidu.com, it also works.

Thanks for the people with this repo~

Copy and paste your error

nonoe

Screenshots

image

image

Value of dashboard variable

none

@cmulittlechild cmulittlechild added the bug Something isn't working label Jan 4, 2024
@shishixiu
Copy link

Can you tell me how to revise “https://trends.google.com/trends/api/dailytrends?hl={self.browser.localeLang}&ed={(date.today() - timedelta(days=i)).strftime("%Y%m%d")}&geo={self.browser.localeGeo}&ns=15” ?

Thanks.

@aixinbei
Copy link

Could you tell me more about how to change getgoogletrends to trends of www.baidu.com?for the api is different from googletreand.

@3356153957
Copy link

您将哪几个文件中的www.bing.com改成了cn.bing.com ,还有您的启动代码是什么,为什么节目是中文的

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants