overleaf-backup-tool icon indicating copy to clipboard operation
overleaf-backup-tool copied to clipboard

support Overleaf v2

Open d-higuchi opened this issue 6 years ago • 3 comments

overleaf v2 launched and this tool did not work.

Traceback (most recent call last):
 File "/overleaf-backup-tool/overleaf_backup.py", line 50, in <module>
   projects_info_list = overleaf_client.get_projects(status="all")
 File "/overleaf-backup-tool/clients/OverleafClient.py", line 42, in get_projects
   status_projects = self.get_projects_by_status(st, login_cookies)
 File "/overleaf-backup-tool/clients/OverleafClient.py", line 91, in get_projects_by_status
   projects_list.extend(proj_json["docs"])
KeyError: 'docs'

d-higuchi avatar Sep 06 '18 08:09 d-higuchi

Hi @cl-lab-k, I bet this would require important modifications to the code, because Overleaf v2 doesn’t seem to offer an API like in v1.

I wrote a quick and dirty adaptation of @tbmihailov’s code that downloads .zip archives of your projects. It’s nowhere as complete as this project, but at least it offers a backup solutions.

gpelouze avatar Nov 22 '18 13:11 gpelouze

I am trying to adapt it. The old API is still active. But they changed the strategy for assigning cookies and I am still figuring it out. @ArcturusB feel free to make a pull request if you figured this out.

tbmihailov avatar Nov 22 '18 15:11 tbmihailov

@tbmihailov: I have a working login function that I can submit as a PR if you wish. :)

gpelouze avatar Nov 22 '18 15:11 gpelouze