Displays market info for the LUNI token on the Terra Blockchain

Related tags

Web CrawlingLuniBot
Overview

LuniBot for Discord

Displays market info for the LUNI/LUNA token on the Terra Blockchain (Webscrape method currently scraping CoinMarketCap). Will evolve over time :)

Install

--Install Dependencies

pip3 install bs4 discord dotenv flask requests

--Add a .env file to the repository and add the following line within it:

token = REPLACEWITHTOKEN <---- Discord Bot token, obtained HERE DO NOT SHARE THIS TOKEN WITH ANYONE

Set up your bot in the given link above and click "Bot" on the left menu to see the "Token" section underneath the Username input.

That is where you will copy and replace the code above with your Bot Token.

This is a private key to your Bot, so make sure not to leave it anywhere someone you dont trust can get it. They could potentially mess with your server.

Add Discord Bot to your server

Click "OAuth2" on the left menu on the Discord Developer Portal

Go to the second section, "URL Generator"

Assign the permissions you wish the bot to have, make sure to know what youre giving it access to, as too much control can be screwy.

Copy the given link on the bottom of the page, should look something like "https://discord.com/api/oauth2/authorize?client_id=??????????".

Go to that link in a new tab and assign the server you want it to have access to (you will have to confirm some permissions first), and your bot will then be connected.

It will show offline until you finalize and run the program.

Finished

And just like that you should be good. As long as you have the necessary dependencies to run the commands, you should see a smooth startup upon running the main.py file in VSCode (or preferred program)

Now go ahead and type "$luni" into the channel the bot is in (and online) and see it print out the top info for LUNI

I also added print function that will print the price in the console upon request from discord.

Tips

**This bot will have access to all your channels, so if you wish to limit this command to one channel, I recommend setting permissions for the Bot's role (should automatically be set as whatever you named the bot in the Discord Developer Portal) to not be able to view whatever channels you don't want it replying in.

**If you ever do have your token compromised (ie, you fork to github with your token readily available to anybody who checks your code) there is usually no cause for concern as Discord will automatically let you know and your token will be invalid. This does mean, however, that you must recopy and reenter your token into your local code in order for the bot to continue working (upon rerunning main.py, of course)

**Lastly, I do recommend applying "slow-mode" or limiting the frequency of using the commands, as the more info it pulls, the longer it will take. I am currently looking towards solutions in making the pull far more efficient so as to ease the amount of effort it takes for the program to access the data.

**This Bot is super simple, so feel free to mess with it and add to it/change it. This serves as a template, as not many solid ones are out there for this sort of thing. Hopefully this helps with that!

PS : Added the logo for the LuniBot avatar :)

Let me know any issues or suggestions! I'm not an expert by any means, so I don't expect this to work flawlessly :P

A Python Covid-19 cases tracker that scrapes data off the web and presents the number of Cases, Recovered Cases, and Deaths that occurred because of the pandemic.

A Python Covid-19 cases tracker that scrapes data off the web and presents the number of Cases, Recovered Cases, and Deaths that occurred because of the pandemic.

Alex Papadopoulos 1 Nov 13, 2021
A python module to parse the Open Graph Protocol

OpenGraph is a module of python for parsing the Open Graph Protocol, you can read more about the specification at http://ogp.me/ Installation $ pip in

Erik Rivera 213 Nov 12, 2022
Script for scrape user data like "id,username,fullname,followers,tweets .. etc" by Twitter's search engine .

TwitterScraper Script for scrape user data like "id,username,fullname,followers,tweets .. etc" by Twitter's search engine . Screenshot Data Users Only

Remax Alghamdi 19 Nov 17, 2022
A web crawler for recording posts in "sina weibo"

Web Crawler for "sina weibo" A web crawler for recording posts in "sina weibo" Introduction This script helps collect attributes of posts in "sina wei

4 Aug 20, 2022
A modern CSS selector implementation for BeautifulSoup

Soup Sieve Overview Soup Sieve is a CSS selector library designed to be used with Beautiful Soup 4. It aims to provide selecting, matching, and filter

Isaac Muse 151 Dec 23, 2022
Google Developer Profile Badge Scraper

Google Developer Profile Badge Scraper GDev Profile Badge Scraper is a Google Developer Profile Web Scraper which scrapes for specific badges in a use

Siddhant Lad 7 Jan 10, 2022
Luis M. Capdevielle 1 Jan 14, 2022
Nekopoi scraper using python3

Features Scrap from url Todo [+] Search by genre [+] Search by query [+] Scrap from homepage Example # Hentai Scraper from nekopoi import Hent

MhankBarBar 9 Apr 06, 2022
Script used to download data for stocks.

This script is useful for downloading stock market data for a wide range of companies specified by their respective tickers. The script reads in the d

Carmelo Gonzales 71 Oct 04, 2022
Open Crawl Vietnamese Text

Open Crawl Vietnamese Text This repo contains crawled Vietnamese text from multiple sources. This list of a topic-centric public data sources in high

QAI Research 4 Jan 05, 2022
Web scrapping tool written in python3, using regex, to get CVEs, Source and URLs.

searchcve Web scrapping tool written in python3, using regex, to get CVEs, Source and URLs. Generates a CSV file in the current directory. Uses the NI

32 Oct 10, 2022
Parse feeds in Python

feedparser - Parse Atom and RSS feeds in Python. Copyright 2010-2020 Kurt McKee Kurt McKee 1.5k Dec 30, 2022

Pyrics is a tool to scrape lyrics, get rhymes, generate relevant lyrics with rhymes.

Pyrics Pyrics is a tool to scrape lyrics, get rhymes, generate relevant lyrics with rhymes. ./test/run.py provides the full function in terminal cmd

MisterDK 1 Feb 12, 2022
UsernameScraperTool - Username Scraper Tool With Python

UsernameScraperTool Username Scraper for 40+ Social sites. How To use git clone

E4crypt3d 1 Dec 20, 2022
Pro Football Reference Game Data Webscraper

Pro Football Reference Game Data Webscraper Code Copyright Yeetzsche This is a simple Pro Football Reference Webscraper that can either collect all ga

6 Dec 21, 2022
A tool can scrape product in aliexpress: Title, Price, and URL Product.

Scrape-Product-Aliexpress A tool can scrape product in aliexpress: Title, Price, and URL Product. Usage: 1. Install Python 3.8 3.9 padahal halaman ins

Rahul Joshua Damanik 1 Dec 30, 2021
Scraping script for stats on covid19 pandemic status in Chiba prefecture, Japan

About 千葉県の地域別の詳細感染者統計(Excelファイル) をCSVに変換し、かつ地域別の日時感染者集計値を出力するスクリプトです。 Requirement POSIX互換なシェル, e.g. GNU Bash (1) curl (1) python = 3.8 pandas = 1.1.

Conv4Japan 1 Nov 29, 2021
Web Crawlers for Data Labelling of Malicious Domain Detection & IP Reputation Evaluation

Web Crawlers for Data Labelling of Malicious Domain Detection & IP Reputation Evaluation This repository provides two web crawlers to label domain nam

1 Nov 05, 2021
SmartScraper: 简单、自动、快捷的Python网络爬虫

SmartScraper: 简单、自动、快捷的Python网络爬虫 Note: The origin developer of SmartScraper is Alireza Mika, I only change a little code of AutoScraper. SmartScraper

DaDeng 9 Apr 16, 2022
Minecraft Item Scraper

Minecraft Item Scraper To run, first ensure you have the BeautifulSoup module: pip install bs4 Then run, python minecraft_items.py folder-to-save-ima

Jaedan Calder 1 Dec 29, 2021