Wikipedia talk:专题/跨语言链接
维基百科,自由的百科全书
在运行bot时经常会发现一些跨语言链接有错误,有什么办法可以把这些跨语言链接有问题的条目选出来?--百无一用是书生 (☎) 07:11 2004年11月25日 (UTC)
- 如果您在运行机器人,-autonomous,会有一个文件autonomous_problem.dat,里面包括所有出问题的条目,以及问题。如果只想要一张列表,可以用以下python script:
result = {} for line in open('autonomous_problem.dat'): if line.find('removing:') > 0: continue; if line.find(']]') != -1: link = line.split(']]')[0] result[link] = link allkeys = result.keys() allkeys.sort() for item in allkeys: print ('#%s]]' % (item)) print ('Total: %s' % len(allkeys))
-
- 看了我以前一次运行的结果,发现autonomous_problem.dat有类似这样的内容:
“前128年 {removing: nl,sv}”。这种问题实际上不是需要修改的问题,应该在运行机器人的时候用“-force ”,剔除连接到不存在的条目。我在上面的程序加了一句,不显示这种问题。--Vina 08:36 2004年11月25日 (UTC)
[编辑] 能否使用特殊页面?
刚刚偶尔看到平江县,发现这个条目的所有链入页面居然只有一个“Wikipedia:没有跨语言连接的文章/2”。也就是说,这个条目事实上就是一个孤立页面(不能从任何正常内容的页面连接过来),只是因为有一个人工生成的系统页面连接到了这里,所以它就不出现在“孤立页面”的列表里了。“没有跨语言连接的文章”这种页面似乎会大大减弱“孤立页面”列表的作用,有没有办法可以解决?能不能把“没有跨语言连接的文章”做成特殊的系统页面,这样统计“孤立页面”时候可以忽略跨语言统计页?--hunry 12:46 2004年11月19日 (UTC)
- 应该忽略所有来自其他名字域的链接,比如Wikipedia:,Help:等等--LiDaobing 10:22 2004年11月26日 (UTC)
- 孤立页面是程序自然生成的,我可以到mailing list去问一下可不可以忽略所有非条目的连接。--Vina 03:05 2004年11月29日 (UTC)
问了开发者,只有随便那里有连接就不会到孤立页面。我又问了有没有可以避免招数,但是没有答复。孤立页面和死链页面实际上可以到材料库自行,见en:Wikipedia:Offline reports。要不要我来运行程序,把结果贴上来? --Vina 01:25 2004年12月15日 (UTC)
[编辑] 错误链接需要更多的信息
主要是究竟是哪一种语言错了,这样才方便该--LiDaobing 10:40 2004年11月26日 (UTC)
- 现在的bot上出两个文件,但是很不好找真正的问题,我来研究一下到底怎么做。--Vina 03:14 2004年11月29日 (UTC)
每个有错的条目可以写出以下的细节,有错误地点,加上那里来的连接来决定到底是哪里错。可是这样处理的页面会很长,怎么办?我根据一个较老的bot log写出的有3meg,现在的应该更大了,不能一次上载。--Vina 04:34 2004年11月29日 (UTC)
- Ada: {Found more than one link for wikipedia:ja}
- zh:Ada: Ada gives new interwiki da:Ada
- zh:Ada: Ada gives new interwiki en:Ada programming language
- zh:Ada: Ada gives new interwiki pl:Ada
- zh:Ada: Ada gives new interwiki es:Lenguaje de programación Ada
- zh:Ada: Ada gives new interwiki ja:プログラミング言語Ada
- zh:Ada: Ada gives new interwiki nl:Programmeertaal Ada
- zh:Ada: Ada gives new interwiki fr:Ada
- zh:Ada: Ada gives new interwiki de:Ada (Programmiersprache)
- zh:Ada: Ada gives new interwiki it:Ada
- zh:Ada: Ada gives new interwiki bg:Ada
- zh:Ada: Ada gives new interwiki ru:Ада (язык программирования)
- zh:Ada: de:Ada (Programmiersprache) gives new interwiki sv:Ada (programspråk)
- zh:Ada: sv:Ada (programspråk) gives new interwiki ja:ADA
- zh:Ada: sv:Ada (programspråk) gives new interwiki da:ADA
- Blog: {Found more than one link for wikipedia:fr}
- zh:Blog: Blog gives new interwiki pt:Weblog
- zh:Blog: Blog gives new interwiki simple:Blog
- zh:Blog: Blog gives new interwiki en:Weblog
- zh:Blog: Blog gives new interwiki pl:Weblog
- zh:Blog: Blog gives new interwiki es:Weblog
- zh:Blog: Blog gives new interwiki ja:Weblog
- zh:Blog: Blog gives new interwiki nl:Weblog
- zh:Blog: Blog gives new interwiki fr:Blog
- zh:Blog: Blog gives new interwiki de:Weblog
- zh:Blog: Blog gives new interwiki it:Blog
- zh:Blog: Blog gives new interwiki ko:블로그
- zh:Blog: en:Weblog gives new interwiki cy:Gweflog
- zh:Blog: en:Weblog gives new interwiki fa:وبلاگ
- zh:Blog: en:Weblog gives new interwiki eo:Blogo
- zh:Blog: en:Weblog gives new interwiki fi:Blogi
- zh:Blog: en:Weblog gives new interwiki no:Weblog
- zh:Blog: en:Weblog gives new interwiki sv:Blogg
- zh:Blog: en:Weblog gives new interwiki fr:Weblog
- zh:Blog: en:Weblog gives new interwiki uk:Веблог
- zh:Blog: en:Weblog gives new interwiki it:Weblog
- zh:Blog: en:Weblog gives new interwiki tr:Ağ günlüğü
- zh:Blog: en:Weblog gives new interwiki da:Weblog
- zh:Blog: en:Weblog gives new interwiki ru:Блог
- zh:Blog: de:Weblog gives new interwiki zh-cn:Blog/简
- zh:Blog: de:Weblog gives new interwiki zh-tw:Blog/繁
- zh:Blog: ja:Weblog gives new interwiki fr:Joueb
- zh:Blog: ja:Weblog gives new interwiki tr:Blog
- zh:Blog: es:Weblog gives new interwiki fa:وبلاگ
- zh:Blog: pl:Weblog gives new interwiki en:Web log