Download page from a google account
Hi,
I've been trying to download a text or html file from a google account. I've tried it with Lynx but it always redirects me to the login page. Same thing with wget, I'm running the below to download my gmail inbox: wget --user=MY.USEr@gmail.com --password=PASSWD --no-check-certificate "https://mail.google.com/mail/u/0/#inbox but it's the same story, I get stuck at the login page. I'm clearly doing something wrong, any help on this? |
I don't know anything about the way you're doing it. I've never tried it that way. But, can the files be put on a shared Google Drive? That may be how google want's to do it now days! Just a thought!
|
Hi Fred,
Yes they can be placed in a Google Drive, but I need them in my computer to manipulate them with my scripts. I know wget and even lynx can be used to download html pages, even the ones which require authentication, but I can't seem to find the way to download the ones from Google. |
#inbox is not a file. With wget you must specify a file. #inbox is PHP or something like that. You can sometimes look at the page code and see what it points to. Something like index.html. You just need to find the file with the email links in it. Wget will follow all the links in the file specified and download the corresponding files. I hope this helps.
|
Quote:
Quote:
why don't you use a mail program like thunderbird for that? google supports that. also i don't think gmail will let you use a text only browser. but i could be wrong there. |
Hi guys,
Thanks for the replies, I found the way to do it. First by downloading the cookies once you're logged in and then you can use the --load-cookies=/cookies.txt option with wget when requesting any file. |
What is the filename for #inbox?
|
|
well done Utarg, and thanks for sharing the solution.
others will benefit. please mark this thread [SOLVED]. |
All times are GMT -5. The time now is 01:34 PM. |