Jump to content

[SOLVED] Go to Url and take some info


mr_zhang

Recommended Posts

Hi guys,

I'm new to this forum. I've tried to search but can't seem to get the answer. So, I'm posting this.

I have 2 web servers on 2 domains. Let's say server A and B. Server A has database and a kind of search the db function. Server B doesn't have it. However, I want to create a script on server B that ables to:
- go to server A.
- Run a search
- Get only partial data from the result form.

I don't want server B to have a function to access DB at server A as I'm going to share the script to several people. I don't want them to have full search result.

To make it easier for you to understand. Let's pretend that I want to get data from Google. I don't have access to Google's DB but I can search and get, e.g., the total number of websites (it's the xxx of the "1 to 10 of xxx"). How can I get the number?

What I can't do are:
- Go to a certain url while still being on my server. So it's not like header go to. I guess.
- Put some string on the search box and simulate the pressing of the "search" button.
- Get the data. Do I have to manually search character by character or is there any faster method?

I'm hoping somebody could give me example how to take the xxx of the "1 to 10 of xxx" from Google. Then put the number on the same page at my server. From there I guess I can do the rest with my own server.

Thank you.
Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.