lzjqsdd / newsspider Goto Github PK
View Code? Open in Web Editor NEW爬取今日头条,网易,腾讯等新闻,并建立简单的搜索引擎
爬取今日头条,网易,腾讯等新闻,并建立简单的搜索引擎
有一个想法,爬取主流网站的数据。
然后显示这些网站是如何引导人们的注意力,然后塑造认知的。
并不以爬取内容展示,用可视化的方法展现。
比如知乎首页推荐内容,如果用户授权,就可以知道知乎给自己推荐的是什么内容了。
想问问作者你是怎么提取到腾讯新闻的baseurl的,我在官网:http://news.qq.com 上并不能找到过去的新闻存档链接,而且查看了网页的源代码也没有发现baseurl。
问一下你是怎么爬取到的?它不是有个html标签隐藏了吗?
你好,我在运行./start.sh时出现如下问题
File "/home/i-chenting/NewsSpider-master/news_spider/news_spider/spiders/TouTiaoSpider.py", line 41, in parseNews
title = articles.xpath("//div[@Class='article-header']/h1/text()").extract()[0]
IndexError: list index out of range
请问是什么原因
你用的是什么 Scrapy 版本?起码要再README里面说明一下你的环境,或者给一个requirement.txt,至少想看看你的代码运行效果的人也能很快搭建好环境很快上手
I keep getting import errors
, so I wonder if anyone could tell us which version of scrapy to use.
So far, the import errors
including:
from scrapy import log
from scrapy.contrib.downloadermiddleware.useragent import UserAgentMiddleware
I tried scrapy 1.7.* and 1.3.0, neither helps.
Thanks.
spider_loader = self.crawler_process.spider_loader ^ TabError: inconsistent use of tabs and spaces in indentation
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.