Skip to content

Conversation

@sguerrini97
Copy link

@sguerrini97 sguerrini97 commented Aug 28, 2023

This allows to track multiple URLs with a single scraper instance.
It is also possible to give a name to every search URL, if specified it will be printed on the console and sent in the Telegram message.

The GUI configuration part is ugly, but I don't have much experience with Tk.

Backwards compatible with older config (single URL).
The GUI will convert the old single URL format to the new multiple URLs format.

Example config.json

{
  "urls": [
    {
      "name": "console",
      "url": "https://www.ebay.it/sch/i.html?_from=R40&_nkw=console&_sacat=0&LH_ItemCondition=7000&_sop=10&rt=nc&LH_PrefLoc=3"
    },
    {
      "name": "nintendo_switch",
      "url": "https://www.ebay.it/sch/i.html?_from=R40&_nkw=nintendo+switch&_sacat=0&LH_ItemCondition=7000&_sop=10&rt=nc&LH_PrefLoc=3"
    },
    {
      "name": "ps4",
      "url": "https://www.ebay.it/sch/i.html?_from=R40&_nkw=ps4&_sacat=0&_sop=10&LH_ItemCondition=7000&rt=nc&LH_PrefLoc=3"
    },
    {
      "name": "ps5",
      "url": "https://www.ebay.it/sch/i.html?_from=R40&_nkw=ps5&_sacat=0&_sop=10&LH_ItemCondition=7000&rt=nc&LH_PrefLoc=3"
    }
  ],
  "telegramAPIKEY": "***",
  "telegramCHATID": "***",
  "databaseFile": "database.db",
  "sleep": "300"
}

@sguerrini97 sguerrini97 marked this pull request as ready for review August 28, 2023 23:26
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.

1 participant