This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from lcu_driver import Connector | |
connector = Connector() | |
# To get champ and rune IDs: | |
# get latest version of api: https://ddragon.leagueoflegends.com/api/versions.json | |
# get champ data: https://ddragon.leagueoflegends.com/cdn/${version}/data/en_US/champion.json | |
# get rune data: https://ddragon.leagueoflegends.com/cdn/${version}/data/en_US/runesReforged.json | |
# 1 - cleanse, 3 - exhaust, 4 - flash, 6 - ghost, 7 - heal, 11 - smite, 12 - teleport, 14 - ignite, 21 - barrier |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import requests | |
from bs4 import BeautifulSoup | |
import keyboard | |
import time | |
import re | |
import pyperclip | |
# list of all urls that should be scraped for items, make sure to add '&ipg=200&cust-search=sell%2Cbuy%2Cprofit-pct' at the end | |
URLS = ['https://www.gw2bltc.com/en/tp/search?rarity=Legendary&sell-min=100000&profit-pct-min=10&cust-search=sell%2Cbuy%2Cprofit-pct', | |
'https://www.gw2bltc.com/en/tp/search?rarity=Rare&level-min=50&level-max=70&sell-min=300000&profit-pct-min=25&ipg=200&cust-search=sell%2Cbuy%2Cprofit-pct', |