Authenticate on a website and Screen scraping with objective-c - objective-c

I'm developing an iPhone application where I wish to authenticate (login form) on a site and retrieve some information by doing some screen scraping. Is there an API available to do this or documentation how I could do this?
thanks

ASIHTTPRequest is a fantastic alternative to NSURLRequest, and the linked page has some great code examples to get you started on the right track.

You may try Gogybot library for Monotouch. Its allow you to use very simple commands, like GoToUrl to open page, SetValue to enter text into text boxes and ClickSubmit to authenticate.

See the docs for NSURLRequest

Related

How to add sign in to {x} with Google elegant pop-up on top-right corner

Sites like https://streeteasy.com/ and https://www.geeksforgeeks.org/ incorporate the same UI that allows you to log-in using Google Auth with one click. The photo below shows an example.
Since many sites have this identical UI, I assume there is some Google/Firebase mode, but I do not see documentation related to this.
Perhaps this link in the html provides some help in figuring this out? ux_mode=popup I am familiar with, but ui_mode=card I am not. https://accounts.google.com/gsi/iframe/select?client_id=388036620207-3uolk1hv6ta7p3r9l6s3bobifh086qe1.apps.googleusercontent.com&ux_mode=popup&ui_mode=card&as=al2HYo2TiehJpHITNY8fJQ&channel_id=9384f02a26b236ce29c0acab5000e8c656b9bbfb3202c094cd65f92e2468d6a3&origin=https%3A%2F%2Fwww.geeksforgeeks.org
This UI use "One tap sign-in and sign-up" of Google. Is very easy, the URL with complete integration and implementation is:
https://developers.google.com/identity/one-tap/web/guides/get-google-api-clientid
I found the solution in
Documentation for the automatic "Continue as" Google popup

Is it possible to add Sharing button for Snapchat? [duplicate]

I am developing a website.I have added the many social login or sharing buttons,links like facebook,tweeter,gplus,pintrest on my php,html based website.
Now i have to add the social sharing button for snapchat.Is it possible to provide a link or button on my website to share a snap,image,content of stories in snapchat ?
I have tried to find out for any API or snapchat link or button to achive, but doesn't found any thing.
I also saw the question doesn't have any answer,reply,comments.
Is it possible to add Sharing button for Snapchat?
From the snapchat blog link following, I found that there is no API available provided by snapchat.
http://blog.snapchat.com/post/99998266095/third-party-applications-and-the-snapchat-api
Is it possible to share contents of snapchat?
That blog post is more talking about using a 3rd party app intead of the snapchat app, this is something i can never see being allowd but is also not what i think you are after.
I assume you mean that you want to be able to share a screenshot or specific image on snapchat. I have not been able to find a way of doing this, the closest thing was a 3rd party app that enabled link insertion to snapchat (http://www.gizmodo.com.au/2016/06/you-can-now-embed-links-in-snapchat-screenshots-using-emoji/)
On the other hand, if you want them to connect to you, this can be done with the url https://www.snapchat.com/add/yourUserName
hope this helps

How to simulate a click in a webpage in iOS with objective-C

I'm looking for an equivalent of Mechanize (Ruby/python and more) for iOS.
I need to simulate a click in a webpage (form submission) and get the response back. I tried to construct a POST-request using ASIHTTPRequest without succes. I was able to create a solution in Ruby (with Mechanize) but I want to be able to do the same in objective-c for iphone development. Any suggestions ?
As described in the duplicated posts, the API to programmatically simulate touches is private, so not appropriate for a shipping app. Follow the links if you want to know how to do it anyway.

Post Screenshot of APP to wall

How would I make a button that when clicked the user of the app will be posting a screenshot of the canvas page they are on and have it posted to their wall? And maybe add some comments with it as well.
you would have to require the user to add some additional plugin to their browser. There are many plugins that do this - for example clipboard.com provides this functionality.
To the best of my knowledge, these extensions actually make a request themselves (in the back-end) to the url you are currently on and takes the screenshot from that url on the actual server. From there it can be shared and commented on.
However with out some external utility I don't think this functionality is possible.
hope this helps...

Create screenshot of the page with Watin-like tool

I need to create a screenshot of the page by providing a page URL to the command line tool. I found the following application: Convert HTML To Image. This tool is OK but want a more flexible application. I need to have ability to perform the following:
Go to the following page.
Click button.
Take a screenshot and save it.
I want to create an application that will test a site by going by URL, take a shots, and then send the images to the email.
Does anybody has an experience in solving such problems?
Watin can capture screenshots:
ie.CaptureWebPageToFile("c:\tmp\watin main page.jpg");
More info:
http://watin.sourceforge.net/releasenotes-1-2-0-4000.html
http://fwdnug.com/blogs/ddodgen/archive/2008/06/19/watin-api-capturewebpagetofile.aspx
I am a contributor to the WatiN project and the author of the WatiN Test Recorder. To do what you want, I'd suggest using something like csExWB2 (http://code.google.com/p/csexwb2/). The demo will give you the basic browser, and you can add screen shots where you like. Emailing is not covered, but that should be fairly easy.
I know this is very old post but i want to leave a message for visitor of this post.
PhantomJS is one option (http://www.phantomjs.org).
According to the WatiN features page:
Supports creating screenshots of webpages
I would direct you to more specifical documentation, but the documentation web doesn't work well with Firefox, so I can't search it.