YahooGroups-Archiver allows you to make a backup copy of all the messages in a public group. Not only is all the message content downloaded, but also all other raw data that Yahoo uses to display the messages.
Messages are downloaded in a JSON format, with one .json file per message.
There is support for private groups, but this requires that you have a Yahoo groups account that has access to the private groups you want to archive. See the 'Private Groups' section for more info.
Works with both Python 2 and Python 3.
python archive_group.py <groupName> [options] [nologs]
where <groupName>
is the name of the group you wish to archive (e.g: hypercard)
Options
update
- the default., Archive all new messages since the last time the script was runretry
- Archive any new messages, and attempt to archive any messages that could not be downloaded last timerestart
- Delete all previously archived messages and archive again from scratch
Please note that you can only have one Option, if you specify more than one, only the first will be used, with the others being ignored.
By default a log file called .txt is created and stores information such as what messages could not be received. This is entirely for the benefit of the user: it's not needed at all by the script during any re-runs (although re-runs will append new information to the log file). If you don't want a log file to be created or added to, add the nologs
keyword when you call the script.
make_archive.py [-h] -g GROUP [--skip-year SKIP_YEAR [SKIP_YEAR ...]]
Creates an archive for GROUP. Optionally, you can pass list of years that will be skipped.
It is possible to archive private groups using this tool, but the way to go about doing this is slighly fiddly at the moment. Rather than simply providing your login information for the Yahoo account that has access to the private groups, you need to provide two pieces of information from Yahoo's login cookies (small files created by web browsers to store data for various uses, such as allowing you to login to websites and then stay logged in for a certain period of time).
Cookie information can be found through the use of a plug-in for your web browser. (I use 'Cookie Manager' on FireFox, although there are many other options for FireFox and other browsers). The two cookies you are looking for are called Y and T, and they are linked to the domain yahoo.com. Extract the data from these cookies, and paste it into the appropriate variables in the archive_groups.py script. You should now be able to archive a private group.
Please note that this support is still experimental. One important issue to consider is that a cookie will expire after a certain amount of time, which varies between computers. This means that you may have to re-fetch the Y and T cookie data every few days, or you will not be able to archive private groups.
Yahoo attempts to block connections that it deems to be "spamming", and so after around 15,000 messages have been downloaded it is highly likely that Yahoo will block you. This is OK, the script will automatically stop, and Yahoo should unblock you after around two hours. Running the script again once you have been unblocked will just continue where it left off. (Unless you run with the restart
[option], of course!
Thanks to the Archive Team for making information about the Yahoo Groups API available.