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
9dfd91b2
Commit
9dfd91b2
authored
Jan 25, 2018
by
Renán Sosa Guillen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
crawlers
parent
be2e6424
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
3 deletions
+2
-3
noticias.py
descarga_por_dia/laJornada/laJornada/spiders/noticias.py
+2
-3
noticias.pyc
descarga_por_dia/laJornada/laJornada/spiders/noticias.pyc
+0
-0
No files found.
descarga_por_dia/laJornada/laJornada/spiders/noticias.py
View file @
9dfd91b2
...
@@ -646,13 +646,12 @@ class QuotesSpider(scrapy.Spider):
...
@@ -646,13 +646,12 @@ class QuotesSpider(scrapy.Spider):
author
=
response
.
xpath
(
'//*[@class="credito-autor"]/text()'
)
.
extract_first
()
author
=
response
.
xpath
(
'//*[@class="credito-autor"]/text()'
)
.
extract_first
()
if
author
is
None
or
author
==
''
:
if
author
is
None
or
author
==
''
:
author
=
response
.
xpath
(
'//*[@class="credito-articulo"]/text()'
)
.
extract_first
()
author
=
response
.
xpath
(
'//*[@class="credito-articulo"]/text()'
)
.
extract_first
()
item
[
'author'
]
=
author
if
author
is
not
None
and
author
!=
''
:
item
[
'author'
]
=
author
location
=
remove_tags
(
response
.
xpath
(
'//p[@class="s-s"]'
)
.
extract_first
())
location
=
remove_tags
(
response
.
xpath
(
'//p[@class="s-s"]'
)
.
extract_first
())
if
location
is
not
None
and
location
!=
''
and
len
(
location
)
<=
35
:
if
location
is
not
None
and
location
!=
''
and
len
(
location
)
<=
35
:
item
[
'location'
]
=
location
item
[
'location'
]
=
location
else
:
item
[
'location'
]
=
None
for
p
in
textLst
:
for
p
in
textLst
:
# text += remove_tags(p).replace('\r', '')
# text += remove_tags(p).replace('\r', '')
...
...
descarga_por_dia/laJornada/laJornada/spiders/noticias.pyc
View file @
9dfd91b2
No preview for this file type
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