Automating download of Google Trends Data in the Post 2014 World - google-trends

I've tried a number of the solutions (e.g. pyGTrends) found here and suggested by others and had code of my own functioning several years ago, but it appears that at some point Google has changed the way Trends is accessed or at least the authorization required to download it.
Can anyone share code that downloads (with authentication) Google Trends data? Do I need to use OAuth 2.0 somehow.
I'm obviously completely in the dark here.

Related

Google Places SDK for iOS equivalent of Google Places API call

I am building an IOS app using SwiftUI and I have decided to use Google Places as it returns better results than MapKit. I am running into some trouble figuring out the use of Places API and. Places SDK for IOS.
I would like to know what is the Places SDK for iOS equivalent of the following Places API text search call which I am using to find all "sports clubs" near me:
var urlString = "https://maps.googleapis.com/maps/api/place/textsearch/json?query=\(query)&key=\(googleApiKey)"
SDK Current Place only returns places nearby, and SDK Autocomplete only returns 5 results.
Thank you
Looking at their official documentation, that feature is not yet available on Places SDK for iOS. So making that Text Search web request is your only option.
There is however an existing feature request to add that functionality in that SDK. If you are interested in this issue, visit the Issue Tracker at the link below, and star the issue. This will subscribe you to receive technical updates on the issue. Starring the issue also provides them with valuable feedback on the importance of the issue to their customers, and increases the issue's priority with their product engineering team.
You can view, and star the issue here: https://issuetracker.google.com/35829470

Google Cloud projects merging

very sorry for a probably stupid and a not very detailed question, but nonetheless, here's the situation:
I have two google cloud projects, one is quite old and only has Google Maps API oauth application, while the second one is the one my organisation uses. the second project has all the needed API oauth tokens, so the question is - is it somehow possible to transfer the GoogleMaps API token from one project to another?
I see both of the projects under one login, so they're kinda together, but at the same time they have different functionality, so i'd like to somehow merge them both - is it possible?
Google FAQ doesn't seem to cover this question, so stackoverflow is my last chance to try and find out.
Lots of thanks in advance for you help.

optimizing data mining from google form for online statistics for recommendation system (Flask app delpoyed on Heroku)

I'm building the Flask app delpoyed on Heroku: recommendation system for the field of future study.
Now I'm stuck on the next question: for now, pupils can fill Google Form, their data adding to Google Sheets, and based on that I'm doing offline statistics. And now I want to implement live-statistics. Because of some "multiple response" questions, there is a problem to take new data from Google Sheets of form without converting data. If I will convert all responces each time, all of that will be not optimized.
What is the best way to implement live-statistics: I don't want use Heroku database and I want to use my Google Sheet. Maybe there is some way to create and update csv file online after each new response?
Any suggestions?
Thank you in advance!
As suggested by Tin, you can use the Sheet API directly; here is a useful guide to get started for Python.
However, since you mention you want to use your Sheet directly, it would be a good idea to take a look at Google Apps Script, it can be quite useful for working with Google products directly and it's easy to use.
You can try with this tutorial on how to get started with Apps Script to work with Sheets. If you have any further questions, feel free to post them separately, the community will be more than happy to help.

WSO2 DSS: Unable to connect to Google spreradsheet

I am trying to connect to a newly created Google spreadsheet, using the WSO2 Data Services Server (DSS), but it keeps giving me an error when I test the connection. I am using WSO2 DSS 3.2.1 with JDK 1.7.0_60 on Windows.
The sample Google spreadsheet is working fine.
It looks like this problem is due to the new format of the Google Doc URLs (introduced in March 2014)
https://docs.google.com/a/ishafoundation.org/spreadsheets/d/1U0uI5sKHy0WVgQcVtZ4mYMHSzTYZZJse35xy1Y1N7Xg/edit#gid=0
The older format is:
https://docs.google.com/a/ishafoundation.org/spreadsheet/ccc?key=1U0uI5sKHy0WVgQcVtZ4mYMHSzTYZZJse35xy1Y1N7Xg&usp=drive_web#gid=0
As a workaround to this, I am creating my spreadsheet in the old version of Google Sheets, using this link:
https://g.co/oldsheets
However, this message is on the Google Sheets help page
*Spreadsheets created in the old version of Sheets will eventually be converted to the new Sheets, which won’t require any action on your
part. More details coming soon. Thanks
This looks a bit scary to me, since it basically means that my data service will break at some random point in the future when Google decide to change the URL formats... Can someone from WSO2 let me know if this will be fixed in the next DSS update, and when we can expect it to be released.
Just a suggestion - but wouldn't it be better if we only had to enter the unique key for the spreadsheet (instead of the full link), and the DSS server used the Google Sheets API to retrieve the data. This might make our implementations a little more future-proof.
Yes this will be fixed in DSS 3.2.2 release. Associated JIRA is DS-930. Alpha pack can be found from this location
Thanks
Chanika

programmatically get ics file from icloud?

I've been running a process for a client that involves grabbing their publicly available calendar file from me.com by making an https GET call in a ruby script, and then converting the data in the .ics file to html, then copying it to their website.
They recently upgraded to Lion and iCloud, and it appears that, while the calendar I want is still publicly available, it's only usable by webCal enabled apps--I can no longer get it over https.
I've poked around a bit on google, but haven't see anything that points me in the right direction yet. Does anyone know if there's a way to access public calendars on iCloud via http/https? Or is it strictly via webcCl? The documentation does make it sound like iCloud is designed to only share data among Apple devices. Am I just stuck here?
I'm surprised no one has answered this yet...
If you go to iCloud.com, you should be able to get the URL of the calendar that you have syncing using a public share. It should be a webcal protocol (webcal://). However, if you change that webcal to https, it will download the ics format instead of trying to sync using Macs iCalendar.
I have my website linking to the https ics file, and it appears to be working just fine (for now at least).
icloud is gona supply an API for developers soon at least thats what they sayed in the last keynote