How can I scrape newloading from Onvista Optionsschein Bid and Ask to my Google Spreadsheet? - spreadsheet

Onvista Optionsschein to scrape http://www.onvista.de/optionsscheine/snapshot.html?ISIN=DE000HU5TD98
https://docs.google.com/spreadsheets/d/1dhfLt7S_kdeoKQymvxL4Y2gL92WLdKaL8nAsaAHyK0Y/pubhtml

This could be a solution, a solution, a solution: https://moz.com/blog/scraping-cleaning-your-data-with-google-sheets-closer-look

Related

Fishbase-API get-query

I would like to use the Fishbase-API in my app.
https://fishbase.ropensci.org/
here is the README for the API...
https://fishbaseapi.readme.io/reference/getting-started
But I don't know how to create a correct query to search for certain “common names” (comnames) and get a list of results?
Thanks a lot!

Disqus API: get total forum number of comments/posts

I'm trying to get the total number of comments that have been written in a given forum.
Looking at http://disqus.com/api/docs/ I can't see anything like this. Honestly, it sounds weird.
Forum details ( http://disqus.com/api/docs/forums/details/ ) shows anything but.
Any hack/piece of code/hidden API call that would to the trick?
Thanks in advance
The best way I have found is to get the list of all the threads and then sum the number of posts for each one:
curl -0 -L "https://disqus.com/api/3.0/forums/listThreads.json?api_key=YOUR_API_KEY&forum=YOUR_FORUM_NAME&limit=100"
Dont forget to iterate over different pages of results if you get a 'next' cursor (response['cursor']['next']).
See this gist for a full JavaScript example (intended to run on Google Script):
https://gist.github.com/sarfata/5068200

Google Custom Search API, Howto return country specific results only

I am making some PHP code which takes a given search phrase and url and searches through the google search results until it finds the url (only first 100 results). My problem is, this is only working for the US. I have tried adding the "&cr=" option, but it still on returns US results.
The full URL I am using for the request is:
https://www.googleapis.com/customsearch/v1?key=API_KEY&cx=CX_VALUE&q=KEYWORD&cr=COUNTRY&alt=JSON
Does anyone have any experience with this? I want to be able to see UK results. Tried inserting &cr=countryUK , but still only does US results.
Thanks :)
Regards,
Stian
Use the gl=<country code> param to limit it to your country of choice (so gl=gb for the uk).
More info here:
http://googleajaxsearchapi.blogspot.com/2009/10/web-search-in-your-country.html

fetch google finance data

can anyone provide me an example on how I can fetch the real-time stocks of google finance
Came across this (and your post) trying to figure this out myself...
This currently retrieves some XML:
http://www.google.com/ig/api?stock=F
Of course they may close this down as well soon...
I think 'last data=' will give current quote
EDIT:
The api is now completely shutdown and no longer works. An alternative to 'api' for a 'realtime' quote would be:
http://finance.google.com/finance/info?client=ig&q=NYSE:F
As for now (2015), the google finance api is deprecated. If you are comfortable with python, you may use the pypi module googlefinance.
Install googlefinance
$pip install googlefinance
It is easy to get current stock price:
>>> from googlefinance import getQuotes
>>> import json
>>> print json.dumps(getQuotes('AAPL'), indent=2)
[
{
"Index": "NASDAQ",
"LastTradeWithCurrency": "129.09",
"LastTradeDateTime": "2015-03-02T16:04:29Z",
"LastTradePrice": "129.09",
"Yield": "1.46",
"LastTradeTime": "4:04PM EST",
"LastTradeDateTimeLong": "Mar 2, 4:04PM EST",
"Dividend": "0.47",
"StockSymbol": "AAPL",
"ID": "22144"
}
]
Google finance is a source that provides real-time stock data. There are also other APIs from yahoo, such as yahoo-finance, but they are delayed by 15min for NYSE and NASDAQ stocks.
I've been struggling with trying to find a lifetime free access for this data for some time as well, but today I came across Alpha Vantage (https://www.alphavantage.co) and used their data to build an Annotated Timeline from Google Charts.
All you need is to request an API Key (which you get at the moment you fill in their form) and follow their Documentation.
An example of getting a JSON output in PHP:
$url = file_get_contents('https://www.alphavantage.co/query?function=TIME_SERIES_DAILY&outputsize=full&symbol=AAPL&apikey='.$apiKey);
$decoded = json_decode($url, true);
Here's a very simple example: http://googlified.com/files/finance-api.html
The link in the earlier answer was broken when I tried it, so here is another example. You have to do a bit of processing but otherwise it's pretty easy.
http://www.google.com/finance/info?client=ig&q=goog,msft

Twitter Substring Searches

If there is a way to do this, it should be a fairly straightforward question. Using the twitter search api, is there a way to return results that contain a part of the word (searching "#dog" would return "#dogs" as-well)?
Thanks
No. What you can do is search for "#dog OR #dogs" and that will return results for both.