diff options
author | terminaldweller <thabogre@gmail.com> | 2021-03-12 07:34:42 +0000 |
---|---|---|
committer | terminaldweller <thabogre@gmail.com> | 2021-03-12 07:34:42 +0000 |
commit | 91c86206f64bb47eb28a55d7e4fbd74de94fcad5 (patch) | |
tree | 45251b5287ae22490dfb6771d71723f9fa2a9e85 | |
parent | fixed a bug where if you symlnked kaminokumo, it wouldnt work properly (diff) | |
download | kaminokumo-91c86206f64bb47eb28a55d7e4fbd74de94fcad5.tar.gz kaminokumo-91c86206f64bb47eb28a55d7e4fbd74de94fcad5.zip |
some PEP8 cleanup
-rwxr-xr-x | kaminokumo | 5 |
1 files changed, 1 insertions, 4 deletions
@@ -3,13 +3,10 @@ import argparse import json import code -import readline import signal import sys import os import requests -import urllib3 -from time import sleep from bs4 import BeautifulSoup import subprocess import re @@ -87,7 +84,7 @@ def manga_scrape(): search = soup.find_all("a", class_="chapter-name text-nowrap") re_res = [] for thing in search: - re_res.append(re.findall("Chapter [0-9]*[\.[0-9]*]?", thing.text)) + re_res.append(re.findall("Chapter [0-9]*[.[0-9]*]?", thing.text)) # print(name, "-->", re_res[0][0]) result += name + "-->" + re_res[0][0] + "\n" print(result, end="") |