Coding Thread, First iPhone App - 2 days into Mac-venture! in Coding and Web Development; As mentioned in Mac thread got my mac on Friday so thought I'd have a play about and see what ...
28th August 2011, 08:12 PM #1
28th August 2011, 08:48 PM #2
Interesting, did your parse out the HTML from the full site or are you passing it through a service to rip out the content before it hits the phone?
28th August 2011, 08:57 PM #3
I would assume the latter as otherwise it would be too dense for the app...
28th August 2011, 08:58 PM #4
Doing full HTML currently and just cutting what I want out.
28th August 2011, 09:00 PM #5
Are you using a framework or doing the parsing by hand?
28th August 2011, 09:03 PM #6
All from scratch, just using simple recurrence and looping etc
Don't even know how to load kits into Xcode yet hehe
28th August 2011, 09:06 PM #7
Might be helpful: http://blog.objectgraph.com/index.php/2010/02/24/parsing-html-iphone-development/
edit: the full HTML has a whole bunch of handilly id'ed div tags which should make stripping it out nice and comparitivly easy. I was looking at doing it with a very simmilar library under .net and then chucking that into a webservice so that the hard work could be done on a server and the phone could just request stripped XML from the webservice. There's plenty of horsepower to do it on the phone itself its just a question of memory and bandwidth usage.
Last edited by SYNACK; 28th August 2011 at 09:11 PM.
28th August 2011, 09:14 PM #8
Aye would be a lot nicer using service, but I'd assume under that route you couldnt reply to threads etc, as it'd be one host? Or would you still send data normally just receive stripped down info?
Will have to take a look at that wrapper looks like it saves lots of work lol
28th August 2011, 09:27 PM #9
The service can act how you want it to, you could also configure it to grab authentication information for the session and pass that through allowing you to post via a stripped down XML bit aswell. It just means that you need to trust the upstream service. If you host it yourself then this is not an issue, likewise if EG hosts it but you are right full features requires the authentication information.
Assuming the parsing rules are compatible then is is easy enough to transfer them over to a service modle at a later date if wanted. The one I was using was the HTMLAgilityPack which it looks might be compatible, expression wise with the Apple one above.
The one issue with HTML scrapeing is if someone changes the html on the server side (site redesign) at which point you have to tweak it a bit.
Looks like you are doing well though.
By mb2k01 in forum New Project Ideas
Last Post: 21st January 2010, 02:47 PM
By pooley in forum Netbooks, PDA and Phones
Last Post: 3rd December 2009, 01:46 PM
By mac_shinobi in forum Mac
Last Post: 14th May 2009, 05:16 PM
By rush_tech in forum General Chat
Last Post: 15th December 2008, 09:59 AM
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)