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

is the API still working? among other questions #8

Open
slk333 opened this issue Oct 31, 2021 · 2 comments
Open

is the API still working? among other questions #8

slk333 opened this issue Oct 31, 2021 · 2 comments

Comments

@slk333
Copy link

slk333 commented Oct 31, 2021

Hi, I just looked at the code, I wonder how did you figure out all the details about the HTTP request you replicate.
For example, how did you figure out what header is required etc..

Did you just debug the official website with chrome dev tools?

Did you use others tools?

Thanks if you have time to reply to this.

@noeRls
Copy link
Owner

noeRls commented Nov 4, 2021

Hello,

I have not used this project since a year so I can not guarantee that it works. However if you are interested and you find some bugs I will fix them.

For the "lobby" api I used chrome dev tool to figure out the requests to send (header, content ...).
For the "game" api I used puppeteer, it load ogame in a browser I parse the html to gather the information and I click on the elements to navigate / do actions.

@slk333
Copy link
Author

slk333 commented Nov 4, 2021

Thanks for the answer. I tried once and it didn't work but it might be related to an environment variable or something like that, probably a minor thing. But it's okay don't waste time on this, i will probably find out myself. Anyway, I was able also to use chrome dev tools to see what headers are needed, and was able to make it work through a postman request. I will probably write more here if I find more. Cheers

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

No branches or pull requests

2 participants