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
#20
As Ofnuts suggested, you should check downloaded file. There is a xml file with meta informations on archive.org page with SHA1, so you can compare it (and you can compare it with file downloaded to your pc).

I am not sure if tweet export must start with "created_at" (it could depend on software used for export, on python json's are dict and they dont keep order (except 3.6)). Actually I dont think that files on ec2 are corrupt (bzip2 should report it/crash when you try to extract corrupted archive), likely just different version ...

If in that file keys have different names, or some are missing (i dont know if lang was used 5 years ago), then parsing it would raise error in innermost loop and nothing would be written.
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,840 Nov-05-2020, 08:14 AM
Last Post: Gribouillis
  Automating PyTables Dataset Creation and Append Robotguy 1 1,843 Oct-18-2020, 08:35 PM
Last Post: jefsummers
  Automating to save generated data Robotguy 3 2,312 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