If a website doesn't have an API - what to do? - objective-c

There is a website called:
Engrade.com.
It's pretty cool, you can monitor what your grades are in your current classes. But I want to make an objective-c app that can log in as me and get my grades. Then probably, it would alert me to any bad grades, etc.
Problem!!! It doesn't have an API, so I'm stuck. Does anyone know how I would do this?
Thanks,
Elijah

You can always just download the page and parse it yourself - be warned that this approach is fraught with peril. You can read about web scraping in general on Wikipedia.

Related

Tts and thunkable

I'm in a class that requires me to submit a project for an app that can help people with disabilities. What me and my partner came up with, is an app that basically has ebooks in a pdf format and can read them to the user using a text to speech method. I dont know how to code, and the class requires me to use a block based interface (thunkable), kinda like scratch, so I don't know if what we came up with it's actually 'makable'. If you have any tips or suggestion over that, of any kind we'd be happy to know your POV on our idea.
Thank you

Objective C get html page's links

I'm quite new in Objective C programming and I'm trying to make an application that returns all the link addresses in HTML page. In that case i shouldn't just parse the HTML, but get these links intercepting them from the page's network request.
Is it possible to intercept the application's network requests or something?
Thanks
Coincidentally, Ray Wenderlich's rather AWESOME iOS tutorial site posted this article in the last hour. As you are new to iOS/ObjC, I highly recommend reading it thoroughly.
Let’s say you want to find some information inside a web page and
display it in a custom way in your app.
This technique is called
“scraping.” Let’s also assume you’ve thought through alternatives to
scraping web pages from inside your app, and are pretty sure that’s
what you want to do.
Well then you get to the question – how can you
programmatically dig through the HTML and find the part you’re looking
for, in the most robust way possible? Believe it or not, regular
expressions won’t cut it!
And before you think Regular Expressions might really be an answer, please read this.

Objective C twitter client help!

I'm trying to update my app (iSocialNet) to use the latest version of MGTwitterEngine without success. I've successfully got iSocialNet to work using Ben Gottlieb's Twitter+OAuth, but there are issues that come with it.
What I would like to do is make my own 'TwitterEngine' but I'm not sure where to start. Can anyone please point me in the right direction? I must warn you that my knowledge of ObjC is minimal, but I'm getting there. Any help is appreciated.
The problem with Twitter+OAuth is that I can't get native retweets to show in the timeline, there's no retweet feature in the MGTE supplied, I can't get all users that a person follows and that's just what I've encountered so far. This is why i need to either update MGTE which comes with OAuth or i need to implement my own engine. I know that OAuth is tricky, but there's a library that MGTE uses that I would use. It's the actuall speaking to twitter that I don't understand.
Many thanks in advance
You could try to parse the timeline directly off twitter, I have same problem and I think it may solve the retweet problem as well as parse the follower list off twitter too ;)
I'd recommend you to explain your problems with Ben Gottlieb's Twitter+OAuth here better than implementing a new OAuth engine, that's absolutely not trivial and with little Objective-C knowledgement it could be disappointing for you! We can help each other here and by reusing code.

Creating a proxy for IE (or other browsers)

I'm using VB.net. I need to create an application that sits in between the browser and the actual internet. Basically, I'm creating an online game that will edit some webpages that are incoming so that they contain parts of the game (it's a kind of scavenger hunt). How would I create this?
Does anybody have any ideas for this? I've found nothing online. If you do know something about this, I prefer code examples and not just subjects. I tend to need big pushes in a direction to learn something new.
Thanks if you can!
Your best bet is to start with FiddlerCore, which is a .NET Class Library which provides exactly what you're looking for. http://fiddler.wikidot.com/fiddlercore

Google suggest API does not work with Chinese locale

I have a problem with Google suggest API when using Chinese locale. I am picking Chinese hieroglyphs at random and use the REST API to retrieve suggestions. Unfortunately, Google always return an empty list of suggestions (I am completely sure, that I convert my request in utf-8, and it is working fine with other languages, ex. Russian):
Sample request:
http://suggestqueries.google.com/complete/search?qu=%E9%80%9F
Google answer:
window.google.ac.h(["速",[]])
Does anyone know how to retrieve suggestions for Chinese locale? Maybe I am missing some flags or something? Maybe there is an official document from Google, saying that Chinese is not supported? And are there any people from China, using Google toolbar? Does it really work? I'd appreciate any help!
If it matters, I am writing a simple WinAPI application, using C++...
http://googleblog.blogspot.com/2009/03/local-flavor-for-google-suggest.html says, at the bottom, that google suggest now supports "155 domains in 51 languages." This implies a possible solution, which is that you need to use the relevant domain.
http://suggestqueries.google.cn/complete/search?qu=%E9%80%9F
gives me
window.google.ac.h(["速",[["速腾","2,020,000 结果","0"] ...
A bit of experimentation shows that I'm able to get results for japanese only from google.co.jp, but not from google.com. I'm in Japan, YMMV.
Hmm I don't know it seems to work for me. e.g
http://suggestqueries.google.com/complete/search?qu=%e6%9c%a8
yields
window.google.ac.h(["木",[["木村了","297,026 results","0z"]]])