Skip to content
This repository has been archived by the owner on Mar 12, 2022. It is now read-only.

Primelooter not looting #3

Closed
Kraker01 opened this issue Aug 16, 2021 · 11 comments
Closed

Primelooter not looting #3

Kraker01 opened this issue Aug 16, 2021 · 11 comments

Comments

@Kraker01
Copy link

Kraker01 commented Aug 16, 2021

Hi,

i've followed your instructions, launched the script using:

python primelooter.py --loop

(cookie and publishers files are in the same directory), the script starts and finish looting cicle without redeeming any game. Should i enter the path of both txt files?

I'm running it on Windows 10, both Firefox and Chrome installed, latest PIP and all requirements installed.

@sibalzer
Copy link
Owner

sibalzer commented Aug 16, 2021

Hi,
i'm on it. The files should be fine. I also do not receive any loot since friday. It seems that they changed some of the html attributes for the offer card containers. Expect a fix this evening.

@sibalzer
Copy link
Owner

I've fixed it already (see #4 ). Please report back if there are any issues.

@Kraker01
Copy link
Author

Kraker01 commented Aug 16, 2021

Launched using "-nh" flag, browser is launching and quitting almost immediately with this error:

"2021-08-16 16:13:55 [ERROR] No loot offers found! Did they make some changes to the website? Please report @github if this happens multiple times.
2021-08-16 16:13:55 [ERROR] No game offers found! Did they make some changes to the website? Please report @github if this happens multiple times."

Python v. 3.9.5
Playwright v. 1.14.0

I've tested it on two different computer (both with Windows 10)

@sibalzer
Copy link
Owner

Thats strange, it works on my machines (Win10 and Linux). I've opened a pr (#5) with explicit waiting for these elements, could you try it out (branch).

@Kraker01
Copy link
Author

Tried branch on a third PC (always latest python and fresh install of playwright, fresh downloaded cookies.txt and renamed your publishers file to publishers.txt)

Same error:
2021-08-16 18:32:24 [ERROR] Could not load loot offers. (timeout)
2021-08-16 18:32:24 [ERROR] No loot offers found! Did they make some changes to the website? Please report @github if this happens multiple times.
2021-08-16 18:32:24 [ERROR] Could not load game offers. (timeout)
2021-08-16 18:32:24 [ERROR] No game offers found! Did they make some changes to the website? Please report @github if this happens multiple times.

@sibalzer
Copy link
Owner

sibalzer commented Aug 16, 2021

🤔 Can you provide me with a html dump ( i've added a -d / --dump option) and your country.

@Kraker01
Copy link
Author

Latest version (the one with "-d" option) is working flawlessy. I simply launched the script without using the option "-nh" and it got everything:

2021-08-16 19:41:46 [INFO] Claimed Another Lost Phone: Laura's Story
2021-08-16 19:41:47 [INFO] Claimed Planet Alpha
2021-08-16 19:41:47 [INFO] Claimed A Normal Lost Phone
2021-08-16 19:41:47 [INFO] Claimed Indiana Jones and the Fate of Atlantis
2021-08-16 19:41:47 [INFO] Claimed Metamorphosis
2021-08-16 19:41:48 [INFO] Claimed Secret Files: Tunguska

Btw, my language/browser/country is Italy, maybe this is a problem for your script?

@sibalzer
Copy link
Owner

sibalzer commented Aug 16, 2021

Dunno, it shouldn't be a problem, but i can only test against the german site. But if it works now, it's good. I will leave the issue open for another week in case the error occurs again.

sibalzer added a commit that referenced this issue Aug 16, 2021
* fix: wait for offer cards
* feat: added dump option
@Kraker01
Copy link
Author

A new item has been added in the Store, primelooter stopped working again. Maybe I should change my language from italian to english?

@sibalzer
Copy link
Owner

It seems that they reverted the changes. 55ab2b4 should now support both website versions.

@Kraker01
Copy link
Author

Working flawlessy after your update.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants