我是cURL和fgc的新手, 我有一个正在进行的项目。我打算使用cURL或file_get_contents来通过搜索查询浏览Google(由于API的限制而不是自定义搜索)并获取结果列表。
例如
$url = https://www.google.com.ng/search?q=the ancient greeks called love the madness of the gods
file_get_contents of $url
or cURL of $url
要获得结果:
1.
$title = The Madness of the Gods by Helen Fisher | Poetry Magazine
$content = Jan 3, 2011 - All showed activity in a tiny factory near the base of the brain that pumps out dopamine—the neural liquor that gives you the energy, focus, craving, and motivation associated with intense romantic passion—what the ancient Greeks called “the madness of the gods.”
$link = https://www.poetryfoundation.org/poetrymagazine/articles/.../the-madness-of-the-gods
2、3、4等列表。
请大家帮我寻求最佳实施方法和方法。 预先感谢