大网数据广告活动
网站运营与故障问答

Submitting a URL to Google using PHP/cUrl

· 52CE 我爱测

I've been successfully submitting xml sitemaps to Google using cURL. The URL is http://www.google.com/webmasters/sitemaps/ping?sitemap= The problem is that XML sitemaps take several days to be processed, and pictures take a lot m…

问题原文

原帖链接 · Robin LeBon · CC BY-SA 3.0

I've been successfully submitting xml sitemaps to Google using cURL.
The URL is http://www.google.com/webmasters/sitemaps/ping?sitemap=

The problem is that XML sitemaps take several days to be processed, and pictures take a lot more time or can never be indexed at all.

When I manually submit a URL at https://www.google.com/webmasters/tools/submit-url, it is indexed in less than a minute, but the pictures it links to are not.

Is there a way to programmatically submit a single URL AND its images to Google without using a XML sitemap?

EDIT

Here's an example result, after using the manual tool:

已采纳解答

原帖链接 · Chris Rutherfurd · CC BY-SA 3.0

Unfortunately there is no way to submit a single URL using cURL or anything automated such as what you are suggesting and there is no way to speed up the indexing process for either the content or the images. Neither sitemap submission nor manual URL submission guarantee the content will be added to the index. With the manual fetch it can update the index a lot faster as it doesn't need to be queued, you have done something and it is doing it then returns the results to you so Google kills two birds with one stone and uses the same process to index as required, however the sitemap submission simply goes through the sitemap file and adds each URL it finds to the queue of URL's to be indexed by Google, and Googlebot will index them at the appropriate time based on where they are in the queue and the formula Google uses to decide how frequently to index a given site and a given page.

Unfortunately for your use case you will simply need to keep on submitting the sitemap using cURL unless you want to run of a list and enter each URL manually into the fetch tool. Either way the image indexing won't be any faster as it takes a while for Google to figure out the keywords to apply to an image and the caption and page content is only part of the way Google comes up with the keywords to attach to the image.

摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。

资料来源与适用范围

资料来源
Webmasters Stack Exchange
适用范围
以原帖系统、软件版本与发布日期为准(2016-04-03)
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY-SA 3.0

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。