From 91c86206f64bb47eb28a55d7e4fbd74de94fcad5 Mon Sep 17 00:00:00 2001 From: terminaldweller Date: Fri, 12 Mar 2021 11:04:42 +0330 Subject: some PEP8 cleanup --- kaminokumo | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/kaminokumo b/kaminokumo index 2832098..d6d7f4d 100755 --- a/kaminokumo +++ b/kaminokumo @@ -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="") -- cgit v1.2.3