Skip to content

Instantly share code, notes, and snippets.

@Ra1d7
Created September 18, 2019 22:10
Show Gist options
  • Save Ra1d7/5a06cf9986a6eeecc22ca0a2cd87ef13 to your computer and use it in GitHub Desktop.
Save Ra1d7/5a06cf9986a6eeecc22ca0a2cd87ef13 to your computer and use it in GitHub Desktop.
League Sorter For LolSamurai config
path = ''
import requests
from bs4 import BeautifulSoup
def dothisshit():
global path
try:
f = open(path)
print('\033[31m\033[1mFile Opened..\033[0m\n')
for line in f.readlines():
secs = line.split('|')
rpnum = secs[3].replace("RP = ",'')
rpnum = rpnum.replace(' ','')
if int(rpnum) > 120:
print('\033[32m {}\033[0m'.format(line))
except:
print('\033[1;91mINVALID PATH\033[0m')
main()
def main():
global path
path = input('Path of File: ')
print('Trying To Open File: {}'.format(path))
dothisshit()
r = BeautifulSoup(requests.get('https://pastebin.com/raw/430SEJHp').content,'lxml')
print(str(r).replace('<html><body><p>','').replace('</p></body></html>',''))
print('\033[33mLeague of legends results Sorter for LolSamurai config')
main()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment