Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
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
720f6059
Commit
720f6059
authored
7 years ago
by
Renán Sosa Guillen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Ajuste "date"
parent
53570a6e
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 addition
and
1 deletion
+1
-1
noticias.py
otros_sitios/laJornadaZac/laJornadaZac/spiders/noticias.py
+1
-1
noticias.pyc
otros_sitios/laJornadaZac/laJornadaZac/spiders/noticias.pyc
+0
-0
No files found.
otros_sitios/laJornadaZac/laJornadaZac/spiders/noticias.py
View file @
720f6059
...
...
@@ -50,7 +50,7 @@ class QuotesSpider(scrapy.Spider):
def
parse_item
(
self
,
response
):
item
=
NoticiasItem
()
text
=
''
item
[
'date'
]
=
response
.
xpath
(
'//
meta[@property="article:published_time"]/@content
'
)
.
extract_first
()
item
[
'date'
]
=
response
.
xpath
(
'//
time[@class="entry-date updated"]/@datetime
'
)
.
extract_first
()
item
[
'title'
]
=
response
.
xpath
(
'//h1[@class="entry-title"]/text()'
)
.
extract_first
()
item
[
'topic'
]
=
response
.
xpath
(
'//*[@class="entry-cat"]/a/text()'
)
.
extract_first
()
...
...
This diff is collapsed.
Click to expand it.
otros_sitios/laJornadaZac/laJornadaZac/spiders/noticias.pyc
View file @
720f6059
No preview for this file type
This diff is collapsed.
Click to expand it.
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