Jump to content

H2 automate user interactions:clicking/opening of web pages?


Calm
 Share

Recommended Posts

I am new and I need to simulate some user interactions to dig down to read information off some web page/popup screens. Is HTML/JavaScript good to use? If yes, can you write me a simple example? If not, can you suggest what to use?The scenario is like this: on your first webpage, you have a restaurant menu with many menu items. Each menu item has a popup screen from which you need to get pricing information. I need to automate this entire human process in order to get the information and put into a file that I can manipulate. So my specification will look like:1) open the main web site which I've already figured out.2) automatically Detect and Open the first 'web. link' within this web site. Each link is pre-fixed by an '*'. 3) identify text information ( ie 'Item name', 'Pricing') from this link and write to a file 3) repeat the process to detect and open the second 'web. link' and so on...4) need to scroll down to get more items until finish. Can someone help??

Link to comment
Share on other sites

you want to read the information off someone elses page and have it create a new page for your site?Javascript cannot do this. You will need PHP or ASP.Net. Also this is plagurism so make sure you get permission from the site owners first

Link to comment
Share on other sites

Thanks guys for your suggestions. However, I either don't get it or don't know how to use PHP/mysql to do what I want. Here is what I need my script to do:#1. Open the "links" on a webpage: auto jump to the "Link" that contains the URL and perform double click event( or something) to open the link.#2. read the information off the "opened link"( ie url) and retireve data: I need to identify data by keyword#3. write/save to a file#4. repeat items #1 to #3This is total legal. I just need to drill down to the 'bottom level' of a site's popup(?) screen to get at the data to do some analysis/statistics work. I don't have access to their database so using Mysql won't help. So if PHP is still the tool to use, can you point me to the right direction? ie script or functions to use?

Link to comment
Share on other sites

"You can retrieve the HTML code from the page and parse it to get the "links" then retreive the HTML for those urls and so on and so on but that is the only way."Is it possible to write script to automate this? I can't do it manually since the links (URL) changes all the time (ie daily) and I need to gather data from these links for a period of time. Can you turn on the onClick event?

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...