-
Notifications
You must be signed in to change notification settings - Fork 114
Importing json file #430
Comments
How did you retrieve that json and what format does it have? Could you provide a snippet of the json (starting at the top)? |
thanks, Erik! Below is a snippet from the json file: [{"created_at": "Fri Jan 24 16:24:23 +0000 2014", "id": 426752350032650240, "id_str": "426752350032650240", "full_text": "Thanks again @jcostik! The power of #opensource @askmanny @mrmikelawson #wearenotwaiting #t1d", "truncated": false, "display_text_range": [0, 93], "entities": {"hashtags": [{"text": "opensource", "indices": [36, 47]}, {"text": "wearenotwaiting", "indices": [72, 88]}, {"text": "t1d", "indices": [89, 93]}], "symbols": [], "user_mentions": [{"screen_name": "jcostik", "name": "John Costik", "id": 71270503, "id_str": "71270503", "indices": [13, 21]}, {"screen_name": "askmanny", "name": "Manny Hernandez", "id": 5986922, "id_str": "5986922", "indices": [48, 57]}, {"screen_name": "MrMikeLawson", "name": "Mike Lawson", "id": 15053068, "id_str": "15053068", "indices": [58, 71]}], "urls": []}, "source": "<a href="https://tapbots.com/software/tweetbot/mac" rel="nofollow">Tweetbot for Mac", "in_reply_to_status_id": 426741704226766848, "in_reply_to_status_id_str": |
Hi again, I keep trying and this is where I've got at: when I try to run the file covering all 4 years - it generates the following errors: root@server:/var/www/dmi-tcat/import# php import-jsondump.php I tried to import a smaller file covering 3 months - it worked and this is what I've got: _root@server:/var/www/dmi-tcat/import# php import-jsondump.php Number of tweets: 0 Total number of timelines: 1 Any help will be appreciated... |
Hi folks - I'm having an issue importing a json file. I've added the name of the bin and name of the json file to the import-jsondump.php script:
The sample.json file is in the 'import' directory, and when I run the script this is what I get:
root@server:/var/www/dmi-tcat/import# php import-jsondump.php
[debug] querybin_id = 15
Number of tweets: 0
Unique tweets: 0
Unique users: 0
Processed 0 tweets!
Total number of timelines: 0
Valid timelines: 0
Invalid timelines: 0
Populated timelines: 0
Empty timelines: 0
Help will be much appreciated.
The text was updated successfully, but these errors were encountered: