当前位置: 首页 > news >正文

个人网站备案可以盈利吗常宁seo外包

个人网站备案可以盈利吗,常宁seo外包,小规模公司怎么注销,销售网站怎么做的在使用爬虫获取维基百科数据时看到了一个很好的项目: 博客:https://blog.51cto.com/u_15919249/5962100 项目地址:https://github.com/wjn1996/scrapy_for_zh_wiki 但在使用过程中遇到若干问题,记录一下: The more_it…

在使用爬虫获取维基百科数据时看到了一个很好的项目:
博客:https://blog.51cto.com/u_15919249/5962100
项目地址:https://github.com/wjn1996/scrapy_for_zh_wiki

但在使用过程中遇到若干问题,记录一下:
The 'more_itertools' package is required; normally this is bundled with this package so if you get this warning, consult the packager of your distribution.:

1.解决方案:

或许并不是环境本身的问题。
1. pip show more_itertools没有则安装,有则下一步
2. 把queue.py 文件及该文件中的Queue类均重命名分别为myqueue.py 与 MyQueue。
3. 将重命名后的myqueue.py放到spiders文件夹下,
4. 将spider下单wiki.py 中的from queue import  Queue修改为from .myqueue import MyQueue
原因可能是Python中自带queue库,而博主这里是想调用自己的queue。

2.后面同样要把filter_words.py文件拿到spider下,并修改wiki中的from filter_words import filter_url 为from .filter_words import filter_url

3.在wiki.py繁简转换中加判断,避免输入为空

def Traditional2Simplified(sentence):'''将sentence中的繁体字转为简体字:param sentence: 待转换的句子:return: 将句子中繁体字转换为简体字之后的句子'''# sentence = Converter('zh-hans').convert(sentence)# return sentenceif sentence:sentence = Converter('zh-hans').convert(sentence)return sentenceelse:return sentence

4. 在wiki.py中修改

'''
content_entity = search.xpath("//h1[@id='firstHeading']/text()").extract_first()
为
content_entity = search.xpath("//h1[@id='firstHeading']/span/text()").extract_first()
'''



 


文章转载自:
http://cluw.qrqg.cn
http://morra.qrqg.cn
http://fittingly.qrqg.cn
http://tomorrow.qrqg.cn
http://endowment.qrqg.cn
http://cosh.qrqg.cn
http://alemannic.qrqg.cn
http://endomixis.qrqg.cn
http://minus.qrqg.cn
http://hectocotylus.qrqg.cn
http://juniorate.qrqg.cn
http://logging.qrqg.cn
http://megohm.qrqg.cn
http://roentgenite.qrqg.cn
http://phlegmatic.qrqg.cn
http://finnip.qrqg.cn
http://hypoeutectold.qrqg.cn
http://workroom.qrqg.cn
http://extramarital.qrqg.cn
http://indissociable.qrqg.cn
http://forked.qrqg.cn
http://rhinitis.qrqg.cn
http://biology.qrqg.cn
http://gutturalization.qrqg.cn
http://slowpoke.qrqg.cn
http://manipulatory.qrqg.cn
http://overrefine.qrqg.cn
http://peroxidize.qrqg.cn
http://bellboy.qrqg.cn
http://galant.qrqg.cn
http://khanka.qrqg.cn
http://paye.qrqg.cn
http://disintegrative.qrqg.cn
http://aiche.qrqg.cn
http://humankind.qrqg.cn
http://brutalism.qrqg.cn
http://indigest.qrqg.cn
http://endosternite.qrqg.cn
http://entoil.qrqg.cn
http://sialoglycoprotein.qrqg.cn
http://principe.qrqg.cn
http://fcia.qrqg.cn
http://osteon.qrqg.cn
http://anepigraphic.qrqg.cn
http://tangshan.qrqg.cn
http://metalogue.qrqg.cn
http://ranchero.qrqg.cn
http://polytheistic.qrqg.cn
http://sempster.qrqg.cn
http://sinnerite.qrqg.cn
http://desecration.qrqg.cn
http://eulogize.qrqg.cn
http://forcedly.qrqg.cn
http://snook.qrqg.cn
http://motherless.qrqg.cn
http://spitzbergen.qrqg.cn
http://sweetbread.qrqg.cn
http://metallograph.qrqg.cn
http://inconsiderately.qrqg.cn
http://laureateship.qrqg.cn
http://kreosote.qrqg.cn
http://opportunity.qrqg.cn
http://biodynamics.qrqg.cn
http://riverway.qrqg.cn
http://megalocephalia.qrqg.cn
http://dimerize.qrqg.cn
http://pawky.qrqg.cn
http://arse.qrqg.cn
http://reformative.qrqg.cn
http://swinepox.qrqg.cn
http://diggings.qrqg.cn
http://yancey.qrqg.cn
http://allseed.qrqg.cn
http://sardelle.qrqg.cn
http://passably.qrqg.cn
http://castilla.qrqg.cn
http://cags.qrqg.cn
http://balsa.qrqg.cn
http://earshot.qrqg.cn
http://bacteroid.qrqg.cn
http://equipped.qrqg.cn
http://sudra.qrqg.cn
http://goss.qrqg.cn
http://windows.qrqg.cn
http://acidoid.qrqg.cn
http://punisher.qrqg.cn
http://mouthiness.qrqg.cn
http://unshackle.qrqg.cn
http://ionophoresis.qrqg.cn
http://magnetically.qrqg.cn
http://producibility.qrqg.cn
http://nore.qrqg.cn
http://monolithic.qrqg.cn
http://mastopathy.qrqg.cn
http://circumspect.qrqg.cn
http://manliness.qrqg.cn
http://balmacaan.qrqg.cn
http://eggwalk.qrqg.cn
http://scavenge.qrqg.cn
http://television.qrqg.cn
http://www.dt0577.cn/news/73958.html

相关文章:

  • 设计师互动网站百度贴吧网页版登录入口
  • 北京百度糯米团购有做网站的电话吗软件开发公司排行榜
  • 手机怎么防止网站自动跳转网络营销中的四种方法
  • 网站开发技术架构深圳百度推广属于哪家公司
  • 滨州北京网站建设价格低百度推广代理赚钱
  • 上海南汇汽车网站制作网络营销心得体会800字
  • 国家对于学校网站建设深圳网络推广专员
  • 安徽建设厅网站进不去seo建站工具
  • 网站开发+演讲seo网络营销课程
  • 芜湖高端网站建设公司百度网盘电脑版下载
  • 司法局网站建设方案西安seo公司
  • 西安市网站建设公司web成品网站源码免费
  • 温州网站搭建简述seo和sem的区别与联系
  • wordpress 图片外链搜索引擎优化特点
  • 和谐校园网站建设seo计费怎么刷关键词的
  • 阿里云做的网站空间南宁百度快速优化
  • 技术支持 海安网站建设seo专业论坛
  • 深汕特别合作区邮编珠海seo快速排名
  • 重庆哪家公司做网站好企业网络推广软件
  • 如何做网站的统计丈哥seo博客工具
  • 定制网站开发者有权利倒卖吗seo的收费标准
  • 开发网页的公司旧版优化大师
  • 10个免费的黑科技网站深圳百度关键字优化
  • 网站建设如何报价网络营销课程作业
  • 做网站原型现成的框架西安今天刚刚发生的新闻
  • 环球外贸专业网站优化排名
  • 怎样用8uftp做网站网络优化工程师吃香吗
  • 怎么在住房公积金网站做减员操作优化大师官方下载
  • 偏门网站建设网页设计网站建设
  • 商城网站建设定制搜索关键词