Commit 909e04d9 authored by umorales's avatar umorales

capitalEdomex

parent c14dec2a
...@@ -38,6 +38,7 @@ class NoticiasSpider(scrapy.Spider): ...@@ -38,6 +38,7 @@ class NoticiasSpider(scrapy.Spider):
self.start_urls = [ self.start_urls = [
f"https://{self.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" f"https://{self.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"
] ]
print(self.start_urls[0])
def parse(self, response): def parse(self, response):
""" """
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment