Skip to content

Commit

Permalink
Merge pull request #222 from scrapy-plugins/job-navigation
Browse files Browse the repository at this point in the history
Add support for JobPostingNavigation.
  • Loading branch information
wRAR authored Oct 7, 2024
2 parents f0f17f5 + 1c8e74f commit 5703048
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 2 deletions.
2 changes: 2 additions & 0 deletions docs/reference/inputs.rst
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@ Inputs

- :class:`zyte_common_items.JobPosting`

- :class:`zyte_common_items.JobPostingNavigation`

- :class:`zyte_common_items.Product`

- :class:`zyte_common_items.ProductList`
Expand Down
5 changes: 5 additions & 0 deletions scrapy_zyte_api/providers.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
AutoArticleListPage,
AutoArticleNavigationPage,
AutoArticlePage,
AutoJobPostingNavigationPage,
AutoJobPostingPage,
AutoProductListPage,
AutoProductNavigationPage,
Expand All @@ -31,6 +32,7 @@
CustomAttributesValues,
Item,
JobPosting,
JobPostingNavigation,
Product,
ProductList,
ProductNavigation,
Expand All @@ -56,12 +58,14 @@
ArticleList: "articleList",
ArticleNavigation: "articleNavigation",
JobPosting: "jobPosting",
JobPostingNavigation: "jobPostingNavigation",
}
_AUTO_PAGES: Set[type] = {
AutoArticlePage,
AutoArticleListPage,
AutoArticleNavigationPage,
AutoJobPostingPage,
AutoJobPostingNavigationPage,
AutoProductPage,
AutoProductListPage,
AutoProductNavigationPage,
Expand All @@ -83,6 +87,7 @@ class ZyteApiProvider(PageObjectInputProvider):
CustomAttributesValues,
Geolocation,
JobPosting,
JobPostingNavigation,
Product,
ProductList,
ProductNavigation,
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ def get_version():
"andi>=0.6.0",
"scrapy-poet>=0.22.3",
"web-poet>=0.17.0",
"zyte-common-items>=0.23.0",
"zyte-common-items>=0.24.0",
]
},
classifiers=[
Expand Down
2 changes: 1 addition & 1 deletion tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ deps =
andi==0.6.0
scrapy-poet==0.22.3
web-poet==0.17.0
zyte-common-items==0.23.0
zyte-common-items==0.24.0

[testenv:pinned-extra]
basepython=python3.8
Expand Down

0 comments on commit 5703048

Please sign in to comment.