Python Forum
Scraping Content from Google Chat - Printable Version

+- Python Forum (https://python-forum.io)
+-- Forum: Python Coding (https://python-forum.io/forum-7.html)
+--- Forum: General Coding Help (https://python-forum.io/forum-8.html)
+--- Thread: Scraping Content from Google Chat (/thread-639.html)



Scraping Content from Google Chat - ATXpython - Oct-25-2016

Hello - 

I want to see if anyone knows of an "easy" way to pull content from google hangouts (their instant messenger app).
So, if I had python log into a google account, I'd like for it to pull all of the data if someone sends that specific account a message through the chat app.

If anyone has anything thoughts on how this could be possible, I'd love to hear your input!

Thanks for your time!


RE: Scraping Content from Google Chat - ATXpython - Oct-26-2016

Shameless bump...

I'm not looking to be spoon fed code - just looking for someone to point me in the right direction.


RE: Scraping Content from Google Chat - snippsat - Oct-26-2016

The first thing you should look if there is an API you can use.
If API dos not give you what you want.
You really need to know how JavaScript work which is used heavy on sites like this.
JavaScript is executed/rendered in browser,
and reading site with standard tool like urllib/Requests will usually not work.
There are tool you can use,but not gone take about it now.

A important part is to look at site and see how it work,
there are many tool for this like FireBug,Chrome dev-tool.
Many small specialty tool eg Live HTTP Headers... ect.