There's a website (telephonic company) where I get a statistic information about the amount of data transferred by my phone during the current month.
To access that information, I need:
* Access the website and login with username and passwod (html form)
* Then choose an option in a combo box (html select)
* And finally click on a link that shows the information (html a)
I want to develop an app that does all this process automatically, and shows only the statistic data.
There's a way to do this in C#?
You need to use System.Windows.Forms.WebBrowser.
Hope this helps.
Please read this MSDN article. Method InvokeScript(String, String[]) may be useful. try to use javascript complete above, if a website page inclued those "login,html selec,submit..." is all the better.
Related
I have set a session cookie and can make a request to:
https://www.instagram.com/{username}/?__a=1 to get a list of the media ids (shortcodes).
I can then navigate to https://www.instagram.com/p/{shortcode}/ to view the media. However, I can't view the page source as it is populated by some JavaScript execution.
Is there a way to either view the page source after JavaScript execution, or another way to obtain the usernames of people who have commented?
Thank you
You can use the tool Swagger-Codegen to generate APIs for a bunch of websites.
Haven't tried with IG but a quick search on google gave me this:
https://app.swaggerhub.com/apis/saketthakare/instagram/1.0.0
You can use Export -> Client SDK -> your programming language to generate a client API.
EDIT: This might also interest you: https://developers.facebook.com/docs/instagram-basic-display-api
I have a website with products part number in it. I want to know if it is possible to search this part number in other website search box. That means to insert the string to the other website search box and execute searching all by code behind?
Admitting you're not the owner of the other website and you don't know how it works :
When you click to the "Search" button of the other website, it triggers a request against the webserver : something like a GET or POST, or maybe the same but through an Ajax request.
It depends of the targeted website, but the best thing to do is probably to get the information about this GET or POST (very easy with Firefox or Google in the Network tab) and to process it yourself from your own application's code using an HttpWebRequest (for example).
This approach is easier and safer than to try to mimic the "Fill the textbox and click on the button and retrieve the response" action, but this is possible too (with web testing frameworks for example : watin, selenium...)
Concretely :
Go to the website you want to dig in
Open "Net" tab of your google chrome / firefox / whatever you want, enable it
Fill the search textbox
Click the search button
Look at the request and response appeared in the browser : you will know how to send a "search" query and the format of the answer returned.
This is general advices, not a definitive answer, because you don't provide enough details to help you more, but I hope this will be helpful !
I m looking for some code to enter data in another website without API,
Front end should be my website and in back end automatically the data enters in the another website and get revert from there and give me the message/proper content in my website..
So is there any type of code is available for that in c#??
Guys please suggest me if there is any way to do this.
I tried some web services but it didn't helped.
Just a suggestion : You can have a single database for both of your web sites. from one site you can insert the data and you can use other website to retrieve it.
I'm currently in the process of building a forum like site where people can register and login to their own page to post content.
I have built the system to send off a verification link to the registrants email along with a link that contains their user user id which is their email on the URL
http://localhost:50490/ForumTest/ActivateProfile.aspx?Username=jason90#yahoo.co.uk
I need to know how I can get my SQL database table [UserTable] field UserVerified to update to "1", it is currently set to "0" by default.
I just need to know how to write the code behind the ActivateProfile.aspx page to update this data field when the Users hit the Activate button on this page.
Would be awesome if someone can help me with this
I have been trying to find solutions everywhere but its all based on examples that were made using the CREATE USER WIZARD on the Microsoft Visual Studio environment. all my forms and fields have been made manually therefore those example were of no use for me :(.
Hope someone can help me
Thanks a lot in advance
:)
Do you have an existing Database connection? You need to execute some SQL similar to this:
UPDATE UserTable SET UserVerified=1 WHERE Username='jason90#yahoo.co.uk'
Is it possible for an XNA game/app to obtain it's own store link url through code or would I have to submit an app, wait for it's store link to become available and release an update including the store link?
Basically I want the player to be able to post his or her score to any social networks set up along with a link to the store page.
-Short question I know but my Google-Fu failed me this time.
To get a store URL, you will need to get hold of the app id. This is done by calling GetManifestAttributeValue. Note that the actual app id (Product ID) is generated when the app is published, and is different than the temporary one that is in WMAppManifest.xml. This causes a chicken and egg scenario when it comes to testing this.
See this for detailed instructions:
http://code.msdn.microsoft.com/Generating-a-Windows-Phone-9d19f939/
If all you need is to link to store from within your app, then use MarketplaceDetailTask to launch to the store. Leave ContentIdentifier as null and it will attempt to bring up the detail page of the current app. If you need to bring up the detail page of a different app, then you will need to know the app id, which you can only get after that app has been published.
http://msdn.microsoft.com/en-us/library/hh394017%28v=vs.92%29.aspx