Closed drboone closed 4 years ago
There's one group (Spotmatic) where I can't even get messages via the script, but can read them in the web interface.
Interesting, I don't think I've seen a 307 response before. Seems related to #2, which was caused by a lack of auth cookies. Permissions json in the above is also showing no read permissions for files or photo access, and offering the join permission to the group.
Are you sure the cookies are correctly supplied, and the given account is a member of the group?
See https://github.com/IgnoredAmbience/yahoo-group-archiver/pull/79.
Should we record 307 responses?
I literally have the same browser session from which I pulled the cookies, still running, and it still has access to the files and images and such. I thought the json looked like it didn't match the web experience. I've checked the copypasta of the cookies a couple of times. Lemme try logging out and back in and refreshing the cookies.
@drboone can you paste the 'about' json of this group (Spotmatic) somewhere?
Oh, re Spotmatic, there's a traceback I should have shared:
Traceback (most recent call last):
File "/usr/local/src/gittree/yahoo-group-archiver/yahoo.py", line 126, in archive_email
yga.messages()
File "/usr/local/src/gittree/yahoo-group-archiver/yahoogroupsapi.py", line 110, in get_json
raise e
File "/usr/local/src/gittree/yahoo-group-archiver/yahoogroupsapi.py", line 105, in get_json
raise requests.exceptions.HTTPError(response=r)
requests.exceptions.HTTPError
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/local/src/gittree/yahoo-group-archiver/yahoo.py", line 693, in <module>
archive_email(yga)
File "/usr/local/src/gittree/yahoo-group-archiver/yahoo.py", line 128, in archive_email
logger.error("User doesn't have permission to access Messages in this group", err.message)
AttributeError: 'HTTPError' object has no attribute 'message'
@drboone are you using python2 or 3?
I just joined the group and I'm running the script (1ee4d1f2b088da06e71d6048923a139266c5bfe1) with the following command line:
python3 yahoo.py -ct 'z=...' -cy 'v=...' -w 'sparetimegizmos'
and everything is archiving properly: messages and files, waiting for the rest.
Do your cookies look like this?
T: z=someLongText&a=someLongText&sk=someLongText&ks=someLongText&kt=someLongText&ku=someLongText&d=someLongText&af=someLongText
Y: v=1&n=someLongText&l=someShortText=someShortText&r=hp&intl=us
Python 3.6.9.
My T cookies is just a long b64? string.
@drboone Valid cookies would be in the format I specified above. The someLongText and someShortText may be b64, but there should be specific sections like that.
How are you exporting your cookies?
Aha, something went wrong with the copypasta then. Trying again.
Theeeere we go. Now pulling files. Thanks!
Resolved — cookie copy/paste issue.
Using 2791b3516860603ab093e3080ec16dda7dd134ec I'm getting the above error for Files and Photos in at least two groups to which I'm subscribed, and in which I can see both types of content in the web interface. Messages seem to download just fine. Log snippet for such an occurrence:
The browser session where I'm viewing the files and images is the one from which I pulled the cookies that the script is using.