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

Update ms_rewards.py #1

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Update ms_rewards.py #1

wants to merge 1 commit into from

Conversation

ghost
Copy link

@ghost ghost commented Aug 22, 2020

No description provided.

Copy link

@Steccah Steccah left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Only changed the strings

@xChickens
Copy link

This literally breaks the program? 'f' in front of the strings is used to format the strings and replace the "{string}" pattern in the strings with the actual variable values.

Copy link

@xChickens xChickens left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Test the program please...

@@ -101,7 +101,7 @@ def get_search_terms():
for date in dates:
try:
# get URL, get api response and parse with json
url = f'https://trends.google.com/trends/api/dailytrends?hl=en-US&ed={date}&geo=US&ns=15'

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Program literally breaks here.

@ZacharyEpic
Copy link

Does this work for rpi and can this be updated I think you can make this more popular by making it work with the different raspberry pi's and fixing the issues I'm pretty sure this is a thing a lot of people would want to do just they don't have the knowledge to do it like I don't have the knowledge to do it

@Timo004
Copy link

Timo004 commented Nov 4, 2021

I delete the "f" in the whole file but if i try to use the command: sudo python3.6 ms_rewards.py --headless --mobile --pc --quiz -> there are new errors

Traceback (most recent call last):
File "ms_rewards.py", line 703, in
search_list = get_search_terms()
File "ms_rewards.py", line 106, in get_search_terms
response = json.loads(request.text[5:])
File "/usr/local/lib/python3.6/json/init.py", line 354, in loads
return _default_decoder.decode(s)
File "/usr/local/lib/python3.6/json/decoder.py", line 339, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "/usr/local/lib/python3.6/json/decoder.py", line 357, in raw_decode
raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 1 column 2 (char 1)

pls help me

@darshtechtutorials13456

so how do i get the e.microsoft.com link for my email? please help

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.

6 participants