Hello! The code creates a database of more than 100 rows in SQLite, but only the first hundred open, while you can manually create new records in the created database. Probably worth some kind of restriction, but I do not see it point-blank. Help me please!
import urllib.request as ur from twurl import augment import json import sqlite3 conn = sqlite3.connect('status_new2.sqlite') cur = conn.cursor() cur.executescript(''' DROP TABLE IF EXISTS Status; CREATE TABLE Status ( title TEXT UNIQUE )''') print ("* Calling Twitter...") url = augment('https://api.twitter.com/1.1/statuses/user_timeline.json', {'screen_name': 'screenname', 'count': '200'} ) connection = ur.urlopen(url) data = connection.read().decode("utf-8") info = json.loads(data) for status in info: s = status["text"] cur.execute('''INSERT OR IGNORE INTO Status (title) VALUES ( ? )''', ( s, ) ) conn.commit() print("Done")