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
da0ac524
Commit
da0ac524
authored
Jan 28, 2025
by
Ulises Morales Ramírez
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
impulso estado de mexico
parent
df362f1a
Changes
3
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
25 additions
and
1 deletion
+25
-1
noticias.py
...s/daily/animalPolitico/animalPolitico/spiders/noticias.py
+1
-0
2017-04-23.json
spiders/daily/capitalEstadoDeMexico/2017-04-23.json
+23
-0
noticias.py
...lEstadoDeMexico/capitalEstadoDeMexico/spiders/noticias.py
+1
-1
No files found.
spiders/daily/animalPolitico/animalPolitico/spiders/noticias.py
View file @
da0ac524
...
...
@@ -123,4 +123,5 @@ class NoticiasSpider(scrapy.Spider):
'url'
:
"https://"
+
self
.
allowed_domains
[
0
]
+
uri
,
'author'
:
author_name
}
print
(
item
[
"title"
])
yield
item
spiders/daily/capitalEstadoDeMexico/2017-04-23.json
0 → 100644
View file @
da0ac524
This diff is collapsed.
Click to expand it.
spiders/daily/capitalEstadoDeMexico/capitalEstadoDeMexico/spiders/noticias.py
View file @
da0ac524
...
...
@@ -35,7 +35,7 @@ class NoticiasSpider(scrapy.Spider):
self
.
day
=
day
.
zfill
(
2
)
if
day
else
None
if
self
.
year
and
self
.
month
and
self
.
day
:
self
.
start_urls
=
[
f
"
https://www.capitaledomex.com.mx
/wp-json/wp/v2/posts?after={self.year}-{self.month}-{self.day}T00:00:00&before={self.year}-{self.month}-{self.day}T23:59:59&per_page=100"
f
"
{allowed_domains[0]}
/wp-json/wp/v2/posts?after={self.year}-{self.month}-{self.day}T00:00:00&before={self.year}-{self.month}-{self.day}T23:59:59&per_page=100"
]
def
parse
(
self
,
response
):
...
...
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