Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
44 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
requests | ||
lxml | ||
dumptruck |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
CREATE TABLE photo ( | ||
-- Page | ||
page INTEGER, | ||
within_page INTEGER, | ||
|
||
-- Standard response | ||
id TEXT NOT NULL, | ||
owner TEXT NOT NULL, | ||
title TEXT NOT NULL, | ||
dateadded DATETIME NOT NULL, | ||
|
||
-- Special fields | ||
date_upload DATETIME NOT NULL, | ||
date_taken DATETIME NOT NULL, | ||
description TEXT NOT NULL, | ||
url_l TEXT NOT NULL, | ||
longitude REAL NOT NULL, | ||
latitude REAL NOT NULL, | ||
UNIQUE(page, within_page) | ||
); | ||
|
||
CREATE VIEW aurora AS SELECT | ||
url_l AS 'url', | ||
'http://www.flickr.com/photos/' || owner || '/' || id AS 'photostream_url' | ||
'http://www.flickr.com/people/' || owner AS 'owner_url' | ||
date_taken, | ||
date_upload, | ||
dateadded AS date_added, | ||
title, | ||
description, | ||
longitude, | ||
latitude | ||
FROM photo; |