Home  >  Q&A  >  body text

php - A question about google search

Use PHP to create a search function, which can be understood as a simple global keyword search [without any word delineation and intelligent recognition in it]

For example, if I want to search for the keyword "segmentfault",
I want to add "Show both Baidu search resultsand googlesearch results"## under the search box. #Now Baidu search results have been implemented, it is not difficult.
The key is Google, the problem of circumventing the firewall.

I now have such an idea, can you guys take a look?

Rent a foreign VPS. When I search for "segmentfault", I will cross-domain request the foreign VPS through the domestic VPS to search for this keyword on Google, and then return the corresponding Google results to the domestic VPS. VPS.
I know that there are many methods in China that use Google mirroring. I think this method is not very reliable. It is often blocked and requires frequent node changes.

The deeper question is, is there any way to make the request I described above sustainable and stable.

Thank you everyone, I don’t know if I made it clear.

淡淡烟草味淡淡烟草味2725 days ago655

reply all(1)I'll reply

  • 伊谢尔伦

    伊谢尔伦2017-05-24 11:32:43

    Just add the proxy of the foreign server to your domestic server. Use the proxy when accessing Google. (The proxy can be ShadowSocks)

    reply
    0
  • Cancelreply