0
Hello, I’m developing an availability Hecker to change names for a game, but it is very slow, I read about the multithreading module but I found it confusing to use, I have no idea how to implode it in my code, someone can show me the way?
Here my code
import faster_than_requests as requests
from bs4 import BeautifulSoup
available_summoners = []
summonertxt = [line.rstrip('\n') for line in open("names.txt", 'r')]
for summoner in summonertxt:
url = 'http://www.lolnames.gg/pt/br/'+summoner
request = requests.get2str(url)
html = BeautifulSoup(request,"lxml")
if 'card bg-success text-white' in request:
print(summoner +' Disponivel!')
else:
print(summoner +' Não Disponivel')
the page when accessing the url http://www.lolnames.gg/pt/br/ returns Bad Request (400), this txt is extra compos or an attempt to answer 200 ?
– stack.cardoso