Skip to content

Commit a52ab36

Browse files
authored
Merge pull request #242 from Gallaecio/serp-provider
provider: add serp
2 parents bf58d54 + 4aa88b4 commit a52ab36

File tree

4 files changed

+9
-2
lines changed

4 files changed

+9
-2
lines changed

docs/reference/inputs.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,8 @@ Inputs
4040

4141
- :class:`zyte_common_items.ProductNavigation`
4242

43+
- :class:`zyte_common_items.Serp`
44+
4345
Additional inputs and input annotations are also provided:
4446

4547
Built-in inputs

scrapy_zyte_api/providers.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828
AutoProductListPage,
2929
AutoProductNavigationPage,
3030
AutoProductPage,
31+
AutoSerpPage,
3132
CustomAttributes,
3233
CustomAttributesMetadata,
3334
CustomAttributesValues,
@@ -37,6 +38,7 @@
3738
Product,
3839
ProductList,
3940
ProductNavigation,
41+
Serp,
4042
)
4143
from zyte_common_items.fields import is_auto_field
4244

@@ -60,6 +62,7 @@
6062
ArticleNavigation: "articleNavigation",
6163
JobPosting: "jobPosting",
6264
JobPostingNavigation: "jobPostingNavigation",
65+
Serp: "serp",
6366
}
6467
_AUTO_PAGES: Set[type] = {
6568
AutoArticlePage,
@@ -70,6 +73,7 @@
7073
AutoProductPage,
7174
AutoProductListPage,
7275
AutoProductNavigationPage,
76+
AutoSerpPage,
7377
}
7478

7579

@@ -93,6 +97,7 @@ class ZyteApiProvider(PageObjectInputProvider):
9397
ProductList,
9498
ProductNavigation,
9599
Screenshot,
100+
Serp,
96101
}
97102

98103
def __init__(self, *args, **kwargs):

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ def get_version():
3333
"andi>=0.6.0",
3434
"scrapy-poet>=0.22.3",
3535
"web-poet>=0.17.0",
36-
"zyte-common-items>=0.24.0",
36+
"zyte-common-items>=0.27.0",
3737
]
3838
},
3939
classifiers=[

tox.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ deps =
9191
andi==0.6.0
9292
scrapy-poet==0.22.3
9393
web-poet==0.17.0
94-
zyte-common-items==0.24.0
94+
zyte-common-items==0.27.0
9595

9696
[testenv:pinned-extra]
9797
basepython=python3.9

0 commit comments

Comments
 (0)