IgnoredAmbience / yahoo-group-archiver

Scrapes and archives a Yahoo groups email archives, photo galleries and file contents using the non-public API
MIT License
93 stars 45 forks source link

Error 123 - Filename, directory or volume is incorrect #113

Closed NicoleMauserStorer closed 4 years ago

NicoleMauserStorer commented 5 years ago

First - thank you for tolerating what is probably a very silly question. I know enough about all of this to be dangerous and have been able to install Python, manage to install requests, find the cookie values and all those pieces and now am stuck on what I'm sure is the easiest part.

I have: yahoo.py -ct "" -cy "" ""

I get:

Traceback (most recent call last): File "C:\Python27\yahoogroup\yahoo.py", line 690, in with Mkchdir(args.group, sanitize=False): File "C:\Python27\yahoogroup\yahoo.py", line 559, in enter os.chdir(self.d) WindowsError: [Error 123] The filename, directory name, or volume label syntax is incorrect: ''

It looks like this is a file directory issue, so I've created a "UMECRA_BoD" directory in the Python folder and in the YahooGroup folder where the script is, but, still errors. What am I missing?

Huge thank you as we have something like 15 years of files and communications from an organization that I don't want to download one at a time... YIKES

NicoleMauserStorer commented 5 years ago

I do have the cookie values in the appropriate spots - not sure why they aren't showing up on the screen - I have them in quotes and brackets as directed and had put in CookieValue1 and CookieValue2 as generic text for this example - the correct values are in my script

foghawk commented 5 years ago

The cookie values and group name should only be in quotes, not angle brackets.

(The brackets are just to clarify that groupid is a parameter which you should fill in with the appropriate value and not a literal string that should be copied exactly. It's common to use them in this way.)

The script thinks you're trying to archive the group "<UMECRA_BoD>" instead of "UMECRA_BoD", and Windows is complaining because it doesn't allow the characters < and > in filenames. Remove the brackets and this will go away.

(As for your text not showing up, GitHub gets confused about angle brackets because it thinks you're trying to write HTML. Type backticks (`) around your command, or three backticks (```) before and after the whole error message, to stop GitHub from trying to format it. Details here.)

IgnoredAmbience commented 4 years ago

Yes, the angular brackets were an indication of what text to change in the command line rather needing to include them as part of the group name. I've removed them from the readme, hopefully this is now clearer.