Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
crawlersNoticias
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
4
Issues
4
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
m3
crawlersNoticias
Commits
375d9f2a
Commit
375d9f2a
authored
Nov 29, 2017
by
Renán Sosa Guillen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
crawlers
parent
89e23bab
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
noticias.pyc
...ia/laJornadaSanLuis/laJornadaSanLuis/spiders/noticias.pyc
+0
-0
noticias.py
descarga_por_dia/laVerdadYuc/laVerdadYuc/spiders/noticias.py
+2
-2
No files found.
descarga_por_dia/laJornadaSanLuis/laJornadaSanLuis/spiders/noticias.pyc
View file @
375d9f2a
No preview for this file type
descarga_por_dia/laVerdadYuc/laVerdadYuc/spiders/noticias.py
View file @
375d9f2a
...
@@ -101,8 +101,8 @@ class QuotesSpider(scrapy.Spider):
...
@@ -101,8 +101,8 @@ class QuotesSpider(scrapy.Spider):
# self.stop = True
# self.stop = True
# else:
# else:
link_list
=
response
.
xpath
(
'//*[@class="two_third post_header"]/h5/a/@href'
)
.
extract
()
link_list
=
response
.
xpath
(
'//*[@class="two_third post_header"]/h5/a/@href'
)
.
extract
()
if
len
(
link_list
)
<=
0
:
link_list
.
extend
(
response
.
xpath
(
'//*[@class="post_header_title two_third last"]/h5/a/@href'
)
.
extract
())
link_list
=
response
.
xpath
(
'//*[@class="post_header_title two_third last"]/h5/a/@href'
)
.
extract
(
)
link_list
.
extend
(
response
.
xpath
(
'//*[@class="post_header_title one"]/h5/a/@href'
)
.
extract
()
)
for
link
in
link_list
:
for
link
in
link_list
:
yield
scrapy
.
Request
(
url
=
link
,
callback
=
self
.
parse_item
)
yield
scrapy
.
Request
(
url
=
link
,
callback
=
self
.
parse_item
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment