Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

support Overleaf v2 #3

Open
d-higuchi opened this issue Sep 6, 2018 · 3 comments
Open

support Overleaf v2 #3

d-higuchi opened this issue Sep 6, 2018 · 3 comments

Comments

@d-higuchi
Copy link
Contributor

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'
@gpelouze
Copy link

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.

@tbmihailov
Copy link
Owner

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.

@gpelouze
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants