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

Cannot connect to host 127.0.0.1:1242 #13

Closed
becauseimnoob opened this issue Nov 12, 2022 · 18 comments
Closed

Cannot connect to host 127.0.0.1:1242 #13

becauseimnoob opened this issue Nov 12, 2022 · 18 comments

Comments

@becauseimnoob
Copy link

First of all thank you for creating something like this
I am running the program on docker. (WSL)

are some warnings and errors I get

2022-11-12 02:43:05,287 - GamesHub - Processing keylol page...
/usr/local/lib/python3.8/dist-packages/bs4/builder/__init__.py:545: XMLParsedAsHTMLWarning: It looks like you're parsing an XML document using an HTML parser. If this really is an HTML document (maybe it's XHTML?), you can ignore or filter this warning. If it's XML, you should know that using an XML parser will be more reliable. To parse this document as XML, make sure you have the lxml package installed, and pass the keyword argument `features="xml"` into the BeautifulSoup constructor.
  warnings.warn(

Cannot connect to host 127.0.0.1:1242 ssl:default [Connect call failed ('127.0.0.1', 1242)]

Why is the start and end date shown as N/A?
resim

@lupohan44
Copy link
Owner

@becauseimnoob Hi, I have not yet find the way to check the start time and end time from keylol, so this us expected behavior. As for the connection error part, you need to change your ip address in ASF plugin or disable it.

@becauseimnoob
Copy link
Author

@becauseimnoob Hi, I have not yet find the way to check the start time and end time from keylol, so this us expected behavior. As for the connection error part, you need to change your ip address in ASF plugin or disable it.

thank you for responding so fast
Is it enough if I disable it like this?

{
  ipc: "",
  ipc_password: "",
  redeem_type: ["Keep Forever"],
  // leave empty to redeem all types, supported types please refer to games_hub/types.py
  redeem_command: "!addlicense asf {game_ids}",
  // change asf to your bot name if you do not want to redeem on all bots
}

@lupohan44
Copy link
Owner

@becauseimnoob No, you should disable it from the config.json in your top level folder. You are welcom.

@becauseimnoob
Copy link
Author

@becauseimnoob No, you should disable it from the config.json in your top level folder. You are welcom.

i think it is now ?

{
  update: {
    check_update: true,
  },
  plugins: {
    "gameshub.official.scrapper.steamdb": {
      // SteamDB scrapper plugin
      enable: true,
    },
    "gameshub.official.scrapper.keylol": {
      // Keylol scrapper plugin
      enable: true,
    },
    "gameshub.official.notification.apprise": {
      // Apprise notification plugin
      enable: true,
    },
    "gameshub.official.redeem.asf": {
      // ASF redeem plugin
      enable: false,
    },
  },
}

@lupohan44
Copy link
Owner

@becauseimnoob This is correct.

@becauseimnoob
Copy link
Author

becauseimnoob commented Nov 13, 2022

@becauseimnoob This is correct.

https://steamdb.info/upcoming/free/
steamdb doesn't seem to work,maybe this library can surpass it https://scrapy.org/ https://theboroer.github.io/localtunnel-www/

screenshot-2022-11-13-11-48-11

@lupohan44
Copy link
Owner

@becauseimnoob Hi, scrapy cannot bypass steamdb's(cloudflare's) anti scrapper. You can try to change the browser engine. Sometimes different engines will help. If you have IPv6, please also disable it.

@becauseimnoob
Copy link
Author

@becauseimnoob Hi, scrapy cannot bypass steamdb's(cloudflare's) anti scrapper. You can try to change the browser engine. Sometimes different engines will help. If you have IPv6, please also disable it.

  1. i tried this but it gets stuck every time and i disabled it I hope you can find a solution, I couldn't understand why steamdb did this.
  2. Does it not scan free games in epic games?

@lupohan44
Copy link
Owner

@becauseimnoob Hi, scrapy cannot bypass steamdb's(cloudflare's) anti scrapper. You can try to change the browser engine. Sometimes different engines will help. If you have IPv6, please also disable it.

  1. i tried this but it gets stuck every time and i disabled it I hope you can find a solution, I couldn't understand why steamdb did this.
  2. Does it not scan free games in epic games?
  1. Because SteamDB doesn't want us to scrap it :D
    Change IP by reset router might also help (If your IP address is dynamic)
  2. Currently I only implemented plugins to scrap free games in steam. Feel free to PR new plugins to scan free games in epic games. I will implement epic games and other platform later if no one PR.

@becauseimnoob
Copy link
Author

@becauseimnoob Hi, scrapy cannot bypass steamdb's(cloudflare's) anti scrapper. You can try to change the browser engine. Sometimes different engines will help. If you have IPv6, please also disable it.

  1. i tried this but it gets stuck every time and i disabled it I hope you can find a solution, I couldn't understand why steamdb did this.
  2. Does it not scan free games in epic games?
1. Because SteamDB doesn't want us to scrap it :D
   Change IP by reset router _might_ also help (If your IP address is dynamic)

2. Currently I only implemented plugins to scrap free games in steam. Feel free to PR new plugins to scan free games in epic games. I will implement epic games and other platform later if no one PR.

I'm looking forward to the epic games feature <3 👍

@becauseimnoob
Copy link
Author

Retrying due to ConnectionError(ProtocolError('Connection aborted.', ConnectionResetError(104, 'Connection reset by peer'))) status: GET https://oauth.reddit.com/r/freegames/new

Also, it sends too many requests to the reddit server, it may cause us to be banned. I made 9000 in settings but it didn't help.

{
  client_id: "xxx",
  client_secret: "xxx",
  loop_delay: 9000,
}

@lupohan44
Copy link
Owner

Retrying due to ConnectionError(ProtocolError('Connection aborted.', ConnectionResetError(104, 'Connection reset by peer'))) status: GET https://oauth.reddit.com/r/freegames/new

Also, it sends too many requests to the reddit server, it may cause us to be banned. I made 9000 in settings but it didn't help.

{
  client_id: "xxx",
  client_secret: "xxx",
  loop_delay: 9000,
}

I used 3000 seconds and didn't encounter this issue. I think this might has nothing to do with too many requests, I think this might due to your internet connection not stable.

@becauseimnoob
Copy link
Author

Retrying due to ConnectionError(ProtocolError('Connection aborted.', ConnectionResetError(104, 'Connection reset by peer'))) status: GET https://oauth.reddit.com/r/freegames/new
Also, it sends too many requests to the reddit server, it may cause us to be banned. I made 9000 in settings but it didn't help.

{
  client_id: "xxx",
  client_secret: "xxx",
  loop_delay: 9000,
}

I used 3000 seconds and didn't encounter this issue. I think this might has nothing to do with too many requests, I think this might due to your internet connection not stable.

resim

@lupohan44
Copy link
Owner

Retrying due to ConnectionError(ProtocolError('Connection aborted.', ConnectionResetError(104, 'Connection reset by peer'))) status: GET https://oauth.reddit.com/r/freegames/new
Also, it sends too many requests to the reddit server, it may cause us to be banned. I made 9000 in settings but it didn't help.

{
  client_id: "xxx",
  client_secret: "xxx",
  loop_delay: 9000,
}

I used 3000 seconds and didn't encounter this issue. I think this might has nothing to do with too many requests, I think this might due to your internet connection not stable.

resim

Network speed has nothing to do with its stability.

@lupohan44
Copy link
Owner

@becauseimnoob Hi, scrapy cannot bypass steamdb's(cloudflare's) anti scrapper. You can try to change the browser engine. Sometimes different engines will help. If you have IPv6, please also disable it.

  1. i tried this but it gets stuck every time and i disabled it I hope you can find a solution, I couldn't understand why steamdb did this.
  2. Does it not scan free games in epic games?
1. Because SteamDB doesn't want us to scrap it :D
   Change IP by reset router _might_ also help (If your IP address is dynamic)

2. Currently I only implemented plugins to scrap free games in steam. Feel free to PR new plugins to scan free games in epic games. I will implement epic games and other platform later if no one PR.

I'm looking forward to the epic games feature <3 👍

epic games feature in commit b42f001

@lupohan44
Copy link
Owner

Close issue due to inactive

@becauseimnoob
Copy link
Author

@becauseimnoob Hi, scrapy cannot bypass steamdb's(cloudflare's) anti scrapper. You can try to change the browser engine. Sometimes different engines will help. If you have IPv6, please also disable it.

  1. i tried this but it gets stuck every time and i disabled it I hope you can find a solution, I couldn't understand why steamdb did this.
  2. Does it not scan free games in epic games?
1. Because SteamDB doesn't want us to scrap it :D
   Change IP by reset router _might_ also help (If your IP address is dynamic)

2. Currently I only implemented plugins to scrap free games in steam. Feel free to PR new plugins to scan free games in epic games. I will implement epic games and other platform later if no one PR.

I'm looking forward to the epic games feature <3 👍

epic games feature in commit b42f001

thank you. I don't know if I want too much. Do you have the opportunity to add it on the GOG platform?

@lupohan44
Copy link
Owner

@becauseimnoob Hi, scrapy cannot bypass steamdb's(cloudflare's) anti scrapper. You can try to change the browser engine. Sometimes different engines will help. If you have IPv6, please also disable it.

  1. i tried this but it gets stuck every time and i disabled it I hope you can find a solution, I couldn't understand why steamdb did this.
  2. Does it not scan free games in epic games?
1. Because SteamDB doesn't want us to scrap it :D
   Change IP by reset router _might_ also help (If your IP address is dynamic)

2. Currently I only implemented plugins to scrap free games in steam. Feel free to PR new plugins to scan free games in epic games. I will implement epic games and other platform later if no one PR.

I'm looking forward to the epic games feature <3 👍

epic games feature in commit b42f001

thank you. I don't know if I want too much. Do you have the opportunity to add it on the GOG platform?

Eventually yes. Feel free to PR to speed up development progress. Also, please open a new issue for new request.

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