PunchCard Failure followed by Search error - No Attribute 'trend_keywords'
bug
### Before submitting a bug report...
- [x] This bug wasn't already reported.
(I have checked every bug report on GitHub)
- [x] I've ran the program with the -r argument.
### Branch
develop
### Commit
ab99b4e
### Describe the bug
Punch Card fails and then searches fail with no Attribute 'Trend_keywords'
### Import the logs
PS C:\Users\verax\Desktop\MS-Rewards-Farmer-master> python main.py -v
2025-05-27 11:01:33,872 [INFO] ********************dstevens.ccte@gmail.com********************
2025-05-27 11:01:33,872 [DEBUG] in __init__
DevTools listening on ws://127.0.0.1:2051/devtools/browser/7514e9e3-8dab-493b-8268-51515b23ccb9
2025-05-27 11:01:47,149 [INFO] Screen size: 1379x1035
2025-05-27 11:01:47,149 [INFO] Device size: 1324x884
2025-05-27 11:01:49,457 [DEBUG] out __init__
2025-05-27 11:01:49,457 [DEBUG] in __enter__
2025-05-27 11:02:03,821 [INFO] [LOGIN] Already logged-in
2025-05-27 11:02:05,540 [INFO] [POINTS] You have 11,746.00 points on your account
2025-05-27 11:02:05,540 [INFO] [ACTIVITIES] Trying to complete all activities...
2025-05-27 11:02:25,710 [DEBUG] activityTitle=2025 NBA Finals
2025-05-27 11:02:25,710 [DEBUG] Already done, returning
2025-05-27 11:02:29,431 [DEBUG] activityTitle=Supersonic quiz
2025-05-27 11:02:29,432 [DEBUG] Already done, returning
2025-05-27 11:02:40,722 [DEBUG] activityTitle=Daily poll
2025-05-27 11:02:40,728 [DEBUG] Already done, returning
2025-05-27 11:02:49,883 [DEBUG] activityTitle=Bing app search
2025-05-27 11:02:49,884 [DEBUG] Ignoring Bing app search
2025-05-27 11:03:10,704 [DEBUG] activityTitle=Win $5,000 in Xbox gift cards!
2025-05-27 11:03:10,707 [DEBUG] Already done, returning
2025-05-27 11:03:19,829 [DEBUG] activityTitle=Download Bing app to earn 500 points!
2025-05-27 11:03:19,831 [DEBUG] Already done, returning
2025-05-27 11:03:28,303 [DEBUG] activityTitle=Holistic benefits
2025-05-27 11:03:28,306 [DEBUG] Already done, returning
2025-05-27 11:03:48,698 [DEBUG] activityTitle=Natural wonders
2025-05-27 11:03:48,699 [DEBUG] Already done, returning
2025-05-27 11:03:55,657 [DEBUG] activityTitle=Do you know the answer?
2025-05-27 11:03:55,658 [DEBUG] Already done, returning
2025-05-27 11:04:05,299 [DEBUG] activityTitle=Expand your vocabulary
2025-05-27 11:04:05,301 [DEBUG] Activity locked, returning
2025-05-27 11:04:25,318 [DEBUG] activityTitle=What time is it?
2025-05-27 11:04:25,319 [DEBUG] Activity locked, returning
2025-05-27 11:04:29,080 [DEBUG] activityTitle=Pruning guide
2025-05-27 11:04:29,081 [DEBUG] Already done, returning
2025-05-27 11:04:35,853 [DEBUG] activityTitle=Tropical coast
2025-05-27 11:04:35,854 [DEBUG] Already done, returning
2025-05-27 11:04:43,492 [DEBUG] activityTitle=Thrill of Atlantic City
2025-05-27 11:04:43,493 [DEBUG] Already done, returning
2025-05-27 11:05:02,417 [DEBUG] activityTitle=Find deals on Bing
2025-05-27 11:05:22,286 [DEBUG] Done
2025-05-27 11:05:46,017 [INFO] [COOLDOWN] Waiting for 509 seconds
2025-05-27 11:14:14,990 [DEBUG] activityTitle=Prepare for the weather
2025-05-27 11:14:14,991 [DEBUG] Activity locked, returning
2025-05-27 11:14:20,701 [DEBUG] activityTitle=Translate anything
2025-05-27 11:14:20,702 [DEBUG] Activity locked, returning
2025-05-27 11:14:26,133 [DEBUG] activityTitle=Learn song lyrics
2025-05-27 11:14:26,135 [DEBUG] Activity locked, returning
2025-05-27 11:14:31,700 [DEBUG] activityTitle=Lights, camera, action!
2025-05-27 11:14:45,108 [DEBUG] Done
2025-05-27 11:14:49,781 [INFO] [COOLDOWN] Waiting for 499 seconds
2025-05-27 11:23:08,782 [DEBUG] activityTitle=Going for gold
2025-05-27 11:23:08,782 [DEBUG] Already done, returning
2025-05-27 11:23:22,295 [DEBUG] activityTitle=Search, shop & more on the go
2025-05-27 11:23:22,296 [DEBUG] Already done, returning
2025-05-27 11:23:36,810 [DEBUG] activityTitle=Up your shirt game
2025-05-27 11:23:36,813 [DEBUG] Already done, returning
2025-05-27 11:23:50,023 [DEBUG] activityTitle=Complete this puzzle
2025-05-27 11:23:50,024 [INFO] Skipping Complete this puzzle because it's not supported
2025-05-27 11:24:01,975 [DEBUG] activityTitle=Know your celebrity news?
2025-05-27 11:24:01,977 [DEBUG] Already done, returning
2025-05-27 11:24:14,368 [DEBUG] activityTitle=Warpspeed quiz
2025-05-27 11:24:14,369 [DEBUG] Already done, returning
2025-05-27 11:24:25,888 [DEBUG] activityTitle=Test your smarts
2025-05-27 11:24:25,889 [DEBUG] Already done, returning
2025-05-27 11:24:38,516 [DEBUG] activityTitle=Warpspeed quiz
2025-05-27 11:24:38,517 [DEBUG] Already done, returning
2025-05-27 11:24:51,117 [INFO] [ACTIVITIES] Done
2025-05-27 11:25:16,304 [INFO] incompleteActivities: ['Complete this puzzle']
2025-05-27 11:25:16,306 [INFO] [PUNCH CARDS] Trying to complete the Punch Cards...
2025-05-27 11:26:26,202 [ERROR] [PUNCH CARDS] Error Punch Cards
Traceback (most recent call last):
File "C:\Users\verax\Desktop\MS-Rewards-Farmer-master\src\punchCards.py", line 75, in completePunchCards
self.completePunchCard(
File "C:\Users\verax\Desktop\MS-Rewards-Farmer-master\src\punchCards.py", line 27, in completePunchCard
self.webdriver.find_element(
File "C:\Users\verax\AppData\Local\Programs\Python\Python312\Lib\site-packages\selenium\webdriver\remote\webdriver.py", line 917, in find_element
return self.execute(Command.FIND_ELEMENT, {"using": by, "value": value})["value"]
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\verax\AppData\Local\Programs\Python\Python312\Lib\site-packages\selenium\webdriver\remote\webdriver.py", line 448, in execute
self.error_handler.check_response(response)
File "C:\Users\verax\AppData\Local\Programs\Python\Python312\Lib\site-packages\selenium\webdriver\remote\errorhandler.py", line 232, in check_response
raise exception_class(message, screen, stacktrace)
selenium.common.exceptions.NoSuchElementException: Message: no such element: Unable to locate element: {"method":"xpath","selector":"//a[@class='offer-cta']/div"}
(Session info: chrome=137.0.7151.41); For documentation on this error, please visit: https://www.selenium.dev/documentation/webdriver/troubleshooting/errors#no-such-element-exception
Stacktrace:
GetHandleVerifier [0x0x956423+63459]
GetHandleVerifier [0x0x956464+63524]
(No symbol) [0x0x781083]
(No symbol) [0x0x7c980e]
(No symbol) [0x0x7c9bab]
(No symbol) [0x0x8125a2]
(No symbol) [0x0x7ee564]
(No symbol) [0x0x80fd9a]
(No symbol) [0x0x7ee316]
(No symbol) [0x0x7bd640]
(No symbol) [0x0x7be4b4]
GetHandleVerifier [0x0xbb7f63+2560803]
GetHandleVerifier [0x0xbb33a2+2541410]
GetHandleVerifier [0x0x97c60a+219594]
GetHandleVerifier [0x0x96d2b8+157304]
GetHandleVerifier [0x0x97389d+183389]
GetHandleVerifier [0x0x95e388+96072]
GetHandleVerifier [0x0x95e530+96496]
GetHandleVerifier [0x0x94925a+9754]
BaseThreadInitThunk [0x0x76775d49+25]
RtlInitializeExceptionChain [0x0x77d8ce3b+107]
RtlGetAppContainerNamedObjectPath [0x0x77d8cdc1+561]
2025-05-27 11:26:51,123 [INFO] [PUNCH CARDS] Exiting
2025-05-27 11:26:51,136 [INFO] [BING] Starting Desktop Edge Bing searches...
2025-05-27 11:26:52,743 [INFO] [BING] Remaining searches=RemainingSearches(desktop=23, mobile=20)
2025-05-27 11:26:53,517 [DEBUG] in __exit__ exc_type=<class 'AttributeError'> exc_value='NoneType' object has no attribute 'trend_keywords' traceback=<traceback object at 0x000001AB1E6D5AC0>
2025-05-27 11:27:10,620 [ERROR]
Traceback (most recent call last):
File "C:\Users\verax\Desktop\MS-Rewards-Farmer-master\main.py", line 33, in main
earned_points = executeBot(currentAccount)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\verax\Desktop\MS-Rewards-Farmer-master\main.py", line 163, in executeBot
searches.bingSearches()
File "C:\Users\verax\Desktop\MS-Rewards-Farmer-master\src\searches.py", line 96, in bingSearches
self.bingSearch()
File "C:\Users\verax\Desktop\MS-Rewards-Farmer-master\src\searches.py", line 108, in bingSearch
trendKeywords = self.googleTrendsShelf[trend].trend_keywords
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'trend_keywords'
2025-05-27 11:27:10,631 [INFO] [POINTS] Data saved for the next day.
### Screenshots
I can't get a screenshot in time but it tries to do the roblox Punch card.
### Value of dashboard variable
N/a
1 条评论