Python Forum
Automating the code using os.walk
Thread Rating:
  • 1 Vote(s) - 3 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Automating the code using os.walk
#19
This drives me nuts... So, I used wget to download a TAR to EC2, then decompressed TAR, then decompressed enclosed BZ2's, then took a small portion of unpacked JSONs and ran the parser -- empty table with heading again :( Exactly the same routine worked fine if executed on my own computer. Totally frustrated...

When I open any JSON extracted on my computer, it always starts with: 
"{"created_at":"Fri Nov 01 06:00:00 +0000 2013","id":396154638434435072,"id_str":"396154638434435072",..." -- seems correct, as tweet's first key is "created_at". 

However, the same JSON extracted on EC2, always starts with:
"{"retweet_count":0,"in_reply_to_screen_name":null,"text":"Photo: http:\/\/t.co\/JmDhpX8V","in_reply_to_status_id_str":null,..." -- obviously incorrect, as tweet's first key shouldn't be "retweet_count".

Any feedback on this would be greatly appreciated.
Reply


Messages In This Thread
Automating the code using os.walk - by kiton - Mar-09-2017, 09:48 PM
RE: Automating the code using os.walk - by wavic - Mar-09-2017, 09:54 PM
RE: Automating the code using os.walk - by kiton - Mar-09-2017, 10:21 PM
RE: Automating the code using os.walk - by zivoni - Mar-09-2017, 10:51 PM
RE: Automating the code using os.walk - by wavic - Mar-09-2017, 11:02 PM
RE: Automating the code using os.walk - by kiton - Mar-09-2017, 11:46 PM
RE: Automating the code using os.walk - by kiton - Apr-03-2017, 12:10 AM
RE: Automating the code using os.walk - by Ofnuts - Apr-03-2017, 07:26 AM
RE: Automating the code using os.walk - by zivoni - Apr-03-2017, 08:12 AM
RE: Automating the code using os.walk - by kiton - Apr-03-2017, 04:34 PM
RE: Automating the code using os.walk - by zivoni - Apr-03-2017, 05:46 PM
RE: Automating the code using os.walk - by kiton - Apr-04-2017, 03:27 AM
RE: Automating the code using os.walk - by zivoni - Apr-04-2017, 07:54 AM
RE: Automating the code using os.walk - by kiton - Apr-04-2017, 06:28 PM
RE: Automating the code using os.walk - by zivoni - Apr-04-2017, 06:40 PM
RE: Automating the code using os.walk - by kiton - Apr-04-2017, 06:48 PM
RE: Automating the code using os.walk - by Ofnuts - Apr-04-2017, 07:32 PM
RE: Automating the code using os.walk - by zivoni - Apr-04-2017, 07:54 PM
RE: Automating the code using os.walk - by kiton - Apr-04-2017, 11:23 PM
RE: Automating the code using os.walk - by zivoni - Apr-04-2017, 11:44 PM
RE: Automating the code using os.walk - by kiton - Apr-13-2017, 06:15 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Automating to generate multiple arrays Robotguy 1 1,837 Nov-05-2020, 08:14 AM
Last Post: Gribouillis
  Automating PyTables Dataset Creation and Append Robotguy 1 1,839 Oct-18-2020, 08:35 PM
Last Post: jefsummers
  Automating to save generated data Robotguy 3 2,309 Aug-12-2020, 03:32 PM
Last Post: Robotguy

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020