Retrieving Text From Website - coronasdk

Is there any way to retrieve the text from a website such as a Wikipiedia site using Corona SDK without having to parse through all of the HTML?

You can use the MediaWiki api doc to get data from wikipedia. Just don't forget to use the format as json.

Related

How to get all the text from a google doc using the ruby api?

I am trying to use the Google Ruby API to get all the text from a google doc. Currently on their website it has examples on how to do this using Java and Python, but not ruby.
I am able to get all content from the body using the following code:
document = service.get_document document_id
data = document.body.content
This returns a really ugly Google structural element.
Anyone achieved this before, if so how? Any help would be great.
You can extract the text of the google doc using the v3 API.
Use the following URL to under the API
https://developers.google.com/docs/api/samples/extract-text#python

Get JSON version of a google image search page

I was watching this tutorial on using AFNetworking in iOS, and the guy instructed us to use a link to a twitter page that was displayed in JSON format. Now, I'm wondering how easy it is to get JSON from a given web page. Say, for example, this google image search for "beautiful fish".
I want to get all the images from this page using the AFNetworking framework, which would be a lot easier if I could have a JSON version of the page, but how do I get that?
After following the answer below, it appears that any image search can have its results displayed in JSON format, using this format:
https://ajax.googleapis.com/ajax/services/search/images?v=1.0&q=YOUR%20SEARCH
Example:
https://ajax.googleapis.com/ajax/services/search/images?v=1.0&q=beautiful%20fish
More info here:
https://developers.google.com/image-search/v1/jsondevguide
Take a look here: https://developers.google.com/custom-search/json-api/v1/overview
You'll get results in JSON if you use that APi

How to get posts from WordPress in iOS application?

I want to write an app for iOS which will get posts from WordPress site. Where shoul I take API's and how to use them?
You could use the Wordpress built-in RSS Feed. You can have a closer look in the documentation here. Then you could use KissXML or any other XML Parser and get the results into your app.
As mentioned by btype you can use the build in RSS feed. WordPressSyncer is a library that will take the feed and save it into core data.
Another option could be to use a wordpress plugin such as WPoniOS which provides a REST API for the blog.

Integrating Google Docs API

I'm just beginning with programming, but i wanted to know if it's possible to use google docs api to make documents on another site using the google docs text editor?
Is there some sort of way i can put the google docs text editor onto a website so that we can use that for document creation instead of tiny mce?
Basically the functionality needed would be documents created, openly shared, a postable version of it (take html code) -- so it can go on the document display page, and
Of course there would be google login and everything, but i just wanted to see if this would work.
No, that is not possible, sorry.

Was it able to retrieve data from a external web site which does not provide a API using YQL?

I'd like to retrieve data from a web site ,which does not provide a API
Can I retrieve data using YQL?
ie: Can I custom the data parse in the target URI with YQL?
Yes, you can. This is one of the most popular use case of YQL. Here is a sample. But it is not working when trying to retrieve data from web-page which is dissallowed for spider access (via robots.txt, for example).
Without knowing what you're trying to do, the only reasonable answer here is…
Yes.

Resources