Closed tels7ar closed 8 years ago
Running the file through uni2ascii first (http://billposer.org/Software/uni2ascii.html) removed that unicode character and allowed me to extract the entire 139,000 lines of chat between me and another person. Thank you so much for writing this tool, it was exactly what I needed.
No problem :) In regard to the unicode error you're having, that's Python 2 specific and shouldn't occur under Python 3. Regardless, I added a fix for that since Python 2 installations are still quite prolific. Thanks for pointing it out!
Sorry doesn't work for me:
Traceback (most recent call last):
File "/usr/local/bin/fbcap", line 9, in <module>
load_entry_point('fbchat-archive-parser==0.4.post3', 'console_scripts', 'fbcap')()
File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/pkg_resources.py", line 357, in load_entry_point
return get_distribution(dist).load_entry_point(group, name)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/pkg_resources.py", line 2394, in load_entry_point
return ep.load()
File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/pkg_resources.py", line 2108, in load
entry = __import__(self.module_name, globals(),globals(), ['__name__'])
File "build/bdist.macosx-10.10-intel/egg/fbchat_archive_parser/main.py", line 9, in <module>
NameError: name 'codecs' is not defined
Sorry, forgot an import. Should be good now.
New error:
Traceback (most recent call last):
File "/usr/local/bin/fbcap", line 9, in
On Fri, May 13, 2016, at 03:28 PM, Dillon Dixon wrote:
Sorry, forgot an import. Should be good now. — You are receiving this because you authored the thread. Reply to this email directly or view it on GitHub[1]
Links:
sigh encoding issues in Python 2... okay, I think it should be fix for real this time, haha.
Confirmed fixed. Thank you.
When I attempt to extract just one conversation from my messages archive, it dies with:
I'm trying to convert the file to ascii with uni2ascii now to see if I can get around this.