Merge pull request #32 from wulkanowy/bugfix/invalid_symbol

Invalid symbol error
This commit is contained in:
Zaptyp 2021-01-29 23:02:56 +01:00 committed by GitHub
commit b45cde1dbf
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -36,6 +36,9 @@ def send(url, data, fail, diary_url, symbol, s):
crtr = s.post(url=wctx, headers={"User-Agent": "Wulkanowy-web :)"}, data={"wa": wa, "wresult": cert, "wctx": wctx})
if 'nie został zarejestrowany w bazie szkoły, do której się logujesz' in crtr.text:
return {'success': False}
bs = BeautifulSoup(crtr.content, 'html.parser')
for a in bs.find_all('a', title='Uczeń'):
oun = a['href']