mirror of
https://github.com/heyarne/berliner-winter.git
synced 2026-05-06 19:23:39 +02:00
swapped '…' with '...' and removed sqlite3 import.
This commit is contained in:
parent
7c4cf8f9f0
commit
4ddd3aa376
1 changed files with 1 additions and 2 deletions
|
|
@ -2,7 +2,6 @@
|
||||||
# Reachout Berlin homepage, checks if they're already in the database and inserts
|
# Reachout Berlin homepage, checks if they're already in the database and inserts
|
||||||
# them if needed.
|
# them if needed.
|
||||||
|
|
||||||
import sqlite3
|
|
||||||
import hashlib
|
import hashlib
|
||||||
import time
|
import time
|
||||||
from models import *
|
from models import *
|
||||||
|
|
@ -14,7 +13,7 @@ encoding = 'UTF-8'
|
||||||
current_milli_time = lambda: int(round(time.time() * 1000))
|
current_milli_time = lambda: int(round(time.time() * 1000))
|
||||||
|
|
||||||
# First crawl through the whole index and get all articles we can find
|
# First crawl through the whole index and get all articles we can find
|
||||||
print('Start crawling…')
|
print('Start crawling...')
|
||||||
start_time = current_milli_time()
|
start_time = current_milli_time()
|
||||||
scraper = Scraper()
|
scraper = Scraper()
|
||||||
articles = scraper.scrape()
|
articles = scraper.scrape()
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue