Bimba.git

commit 14ec44cbf24598834b43b0aad8af3bfc08ac7bdf

Author: Adam Pioterek <adam.pioterek@protonmail.ch>

merge scrapper

 research/scraper.py | 250 +++++++++++++++-------------------------------


diff --git a/research/scraper.py b/research/scraper.py
index 10272c77614a11607d4706af4eb777e687d3e6f1..1315a535dbb72bd0828b629cb9ca3df3f119e232 100755
--- a/research/scraper.py
+++ b/research/scraper.py
@@ -8,20 +8,12 @@ bike stations: http://www.ztm.poznan.pl/goeuropa-api/bike-stations
 
 """
 import json
-import hashlib
 import os
 import re
 import sqlite3
 import sys
-import time
 import requests
 from bs4 import BeautifulSoup
-import secrets
-
-
-def remove_options(text):
-    return re.sub('(<select[^>]*>([^<]*<option[^>]*>[^<]*</option>)+[^<]*</select>)','', text)
-
 
 def get_validity():
     """
@@ -33,30 +25,23 @@     option = re.search('