GithubHelp home page GithubHelp logo

davidteather / hotukdeals-discord-notifier Goto Github PK

View Code? Open in Web Editor NEW
5.0 3.0 0.0 16 KB

A commissioned project to notify a user on discord about new deals matching specific criteria.

License: MIT License

Python 100.00%
discord python notifier hotukdeals-discord-notifier discord-api httpsproxy bot deals deal-notifications deal-monitor

hotukdeals-discord-notifier's Introduction

HotUkDeals-Discord-Notifier

This is a website scraping program designed to scrape this website. It allows the user to input specific criteria and when the program finds a result that matches the criteria you will be notified on discord.

Getting Started

The following instructions will help you get you running this software.

Prerequisites

To install the python requirements please run the command below.

pip install pip install beautifulsoup4

Installing

Have python 3.x installed. This was tested with 3.7.3

Running the program

To run the software you first need to add information into the proxies.txt and settings.json.

Example of settings.json

{
    "min_upvotes": "500",
    "max_upvotes": "1000",
    "base_url": "https://www.hotukdeals.com",
    "pages_to_index": "10",
    "discord_api_token": "1234567890",
    "min_price": "0",
    "max_price": "500",
    "discord_channel_id": "1234567890",
    "time_interval_seconds": "1800",
    "proxy": "False"
}

min_upvotes - The minimum amount of upvotes / degrees to be notified of.

max_upvotes - The maximum amount of upvotes / degrees to be notified of.

base_url - The base url to be scanned. Default works fine.

pages_to_index - The amount of pages you want to index default is 10.

discord_api_token - Your discord API token for your bot. Here is a good article on how to get your bot's api token.

min_price - The minimum price of the deal you want to be notified of.

max_price - The maximum price of the deal you want to be notified of.

discord_channel_id - The discord channel ID you want your bot to be talk in and notify you of. Here is a good article on how you are able to get your discord channel id.

time_interval_seconds - The amount of time in seconds that you want to delay after all the pages are scraped. I recommend over 30 minutes.

Example of proxies.txt and httpsProxy.txt

1234.1234.1234:1010

Each line should be a new proxy with a port, must be able to manage SSL.

Http proxy addresses go into the proxies.txt and https proxy addresses go into the httpsProxy.txt file.

Executing the program

Once you have all of the json files configured as you would like simpily run the command below.

python main.py

The bot will then notify you on discord when the deals match your criteria.

Built With

Authors

License

This project is licensed under the MIT License - see the LICENSE.md file for details

hotukdeals-discord-notifier's People

Contributors

davidteather avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

hotukdeals-discord-notifier's Issues

missing 1 required keyword-only argument

Traceback (most recent call last):
File "C:\Users\USER\Desktop\Hotukdeals-Discord-Notifier-master\main.py", line 269, in
client = MyClient(channel_id)
File "C:\Users\USER\Desktop\Hotukdeals-Discord-Notifier-master\main.py", line 32, in init
super().init(*args, **kwargs)
TypeError: Client.init() missing 1 required keyword-only argument: 'intents'

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.