implemented most of the pixiv scraper
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
from psycopg2._psycopg import connection
|
||||
|
||||
import db.pictures as db
|
||||
from api.models import Account, Picture
|
||||
|
||||
|
||||
def pinterest(conn: connection, account: Account):
|
||||
picture = Picture(external_id = "1", url = "", metadata = {})
|
||||
picture_id = db.create_picture(conn, "pinterest", picture.external_id, picture.url, picture.metadata)
|
||||
return picture_id
|
||||
Reference in New Issue
Block a user