-
Notifications
You must be signed in to change notification settings - Fork 51
Cannot analyze messages because "no such file or directory @ rb_sysopen" #22
Comments
@victorialo What would be great if you can provide the folder / file structure that you have, so that in future development these archives also can be supported. If you can run this from your terminal and post the result in this issue, that would be great help:
|
Here's a screenshot of the folder structure of the downloaded data. I looked at the creation of If there's a different type of archive exported, that's entirely possible - my account is from 2009 and I've used essentially every feature of Facebook, from page and group admins to life events and hundreds of thousands (if not millions) of messages. I noticed that the snippet I shared was looking for an
|
@victorialo What is currently parsed are these files: The main interest is in the file extension and the folder structure itself. From that we could for instance create a Class that will generate different type of archives (/folder structures), based on the community feedback, so that the lib can handle different types. |
Yeah, I'm looking, and I have no such folder called The |
Maybe because you have more information gathered the
What is the folder/file structure inside |
@victorialo have you run without I'd remove the Contacts.new from the I'd try updating the friends script to target |
I removed def initialize(catalog:)
@catalog = catalog
# @directory = "#{catalog}/html/"
# @file_pattern = 'friends.htm'
@directory = "#{catalog}/friends/"
@file_pattern = 'friends_added.html'
@friends = []
super()
end I still get
Removing the Friends feature also doesn't help: analyzeables = [Messages.new(catalog: catalog, parallel: true)] #Contacts.new(catalog: catalog), Friends.new(catalog: catalog)]
If you look at the error message, it's something wrong with messages. |
@victorialo - you're right, it does look like the issue is with messages. Are there any .json files in your messages folder? If so, can you delete them and try again? If that doesn't work, my guess is that the HTML structure of your conversations is different from other archives which will involve some refactoring to fix. It'd be nice if the different formats could be generalized so a user could specify the archive type as a command line arg. |
Yeah, there was a Yeah, I was thinking that too - that would be nice. I could send you one of the files maybe to work off of to refactor? |
Could you try updating your The new file_pattern will look for all Changing L52 and adding the If these changes work (assuming it's only a directory structure issue and the files are the same), the README should be updated with archive types and the correct |
@victorialo I have create PR #33 - maybe you can check out that branch and see if this removes all sensitive information from your export. Then @northcott-j and the others can deeper analyse your archive without posting screenshots. |
@victorialo can you run |
Upon trying to analyze messages using the command
$ DEBUG=true ruby analyze_facebook_data.rb /Users/victoria/Downloads/facebook-victorialo123
, I get this output:messages.rb:31 points to the line
@me ||= Nokogiri::HTML(File.open("#{@catalog}/index.htm")).title.split(' - Profile')[0].to_sym
Might want to look into this.
Thank you!
The text was updated successfully, but these errors were encountered: