How can I simulate IP capture to collect Baidu search result data based on regional IP addresses?

Source: Internet
Author: User
How can I simulate IP capture to collect Baidu search result data based on regional IP addresses? The data obtained by Baidu is determined based on the IP address of the region, and the results are different. for example, when users in Beijing and Guangdong search for hospital keywords, the displayed division results are different. Now I want to capture Baidu's results by simulating IP addresses. I use CURL to simulate IP addresses and sources, but the results are ineffective.


Reply to discussion (solution)

Are all different IP addresses consistent?

Different IP addresses, for example, I want to query the search results of Guangdong and simulate an Ip address of Guangdong. query the ranking of keywords in Shanghai and simulate an Ip address in Shanghai. I use curl to simulate the IP address, but the result is still the IP address of the current server.

Are all different IP addresses consistent?



Different IP addresses, for example, I want to query the search results of Guangdong and simulate an Ip address of Guangdong. query the ranking of keywords in Shanghai and simulate an Ip address in Shanghai. I use curl to simulate the IP address, but the result is still the IP address of the current server.

Can it be simulated? You can only use the proxy ip address.

Can it be simulated? You can only use the proxy ip address.



I used curl for IP address simulation and source address simulation. Two php files are written locally, which is acceptable for testing, but it does not work when I simulate IP requests to Baidu.

The IP address cannot be simulated. Establishing a TCP/IP connection must be a real IP address.
You can only use the proxy server

Can you post your curl statement?

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.