From 2578aeb36ef67a2bdba3113dab1de637e42ebe91 Mon Sep 17 00:00:00 2001 From: hubobel Date: Sat, 16 Feb 2019 20:39:03 +0100 Subject: [PATCH] =?UTF-8?q?fertig=20f=C3=BCr=20Produktivsetzung?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- FilosophieTOsql.py | 15 ++++----------- 1 file changed, 4 insertions(+), 11 deletions(-) diff --git a/FilosophieTOsql.py b/FilosophieTOsql.py index 2a0c8a7..1b16535 100644 --- a/FilosophieTOsql.py +++ b/FilosophieTOsql.py @@ -12,25 +12,20 @@ try: cursor.execute("""CREATE TABLE Filosofie ( Nr INTEGER, Filosofie TEXT)""") except: - print ('weiter') + #print ('weiter') sql = "SELECT * FROM Filosofie ORDER BY Nr DESC" resp = cursor.execute(sql) resp3=resp -print(resp) +#print(resp) ergebniss='' -new=0 - requests.packages.urllib3.disable_warnings() sauce = requests.get('https://www.swr3.de/wraps/fun/filosofie/neu.php?id=11', verify=False) soup = bs.BeautifulSoup(sauce.text, 'lxml') - for i in soup.find_all('div'): ergebniss=ergebniss+str(i) - start=(ergebniss.find('href="/wraps/fun/filosofie/neu.php?id=12"> weiter >