-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add importing of media files when importing Tweets from an archive
* The downloaded archive includes all the media files associated with a user's tweets, so we can import them relatively easily. * We import the MP4s Twitter users to display animated GIFs and the image files for JPGs/PNGs. We don't import video files that were uploaded as such because we don't currently include those when fetching media files from the API, so this is to remain consistent. * When we fetch media files for animated GIFs, we fetch both the MP4 and a JPG of it. Although we have the path for both in the tweet data in the archive, only the MP4 is present in the `tweet_media` directory so we only import that. For #229
- Loading branch information
1 parent
203797a
commit 92688fd
Showing
11 changed files
with
436 additions
and
36 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
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,12 @@ | ||
window.YTD.account.part0 = [ | ||
{ | ||
"account" : { | ||
"email" : "[email protected]", | ||
"createdVia" : "web", | ||
"username" : "philgyford", | ||
"accountId" : "12552", | ||
"createdAt" : "2006-11-15T16:55:59.000Z", | ||
"accountDisplayName" : "Phil Gyford" | ||
} | ||
} | ||
] |
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,13 @@ | ||
window.YTD.profile.part0 = [ | ||
{ | ||
"profile" : { | ||
"description" : { | ||
"bio" : "Creator of the Bishop of Manchester’s favourite meme // Also @samuelpepys and @todaysguardian", | ||
"website" : "https://t.co/FsYzXrATit", | ||
"location" : "Herefordshire, UK" | ||
}, | ||
"avatarMediaUrl" : "https://pbs.twimg.com/profile_images/1167616130/james_200208_300x300.jpg", | ||
"headerMediaUrl" : "https://pbs.twimg.com/profile_banners/12552/1603038696" | ||
} | ||
} | ||
] |
Oops, something went wrong.