ios - download web page source code on iphone -
ios - download web page source code on iphone -
i need download particular webpage on iphone. redirects me if utilize desktop. tools out there help me this? have tried sitesucker didnt work.
thanks!
if redirects when utilize desktop access it, can right click link , download page source. since want on iphone, can following:
// download webpage nsurl *url = [nsurl urlwithstring:@"https://yoururl.here"]; nsdata *urldata = [nsdata datawithcontentsofurl:url]; [urldata writetofile:filepath atomically:yes];
and can access info through simulator folder or straight nsstring.
nsurl *url = [nsurl urlwithstring:@"https://yoururl.here"]; nsstring *source = [nsstring stringwithcontentsofurl:url encoding:nsutf8stringencoding error:null]
ios mobile-safari
Comments
Post a Comment