Repository navigation
Conversation
Contributor
|
This PR has been automatically closed because the author is explicitly blocked in the vouch list. |
5 of 9 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Involved Issue / 该 PR 相关 Issue
Close #
Example for the Proposed Route(s) / 路由地址示例
New RSS Route Checklist / 新 RSS 路由检查表
PuppeteerNote / 说明
Adds a route for the Shanghai Stock Exchange public REITs disclosure announcements (www.sse.com.cn/reits/, the 信息披露 section), complementing #23544 which covers the Shenzhen equivalent.
Data source: official JSON API
https://query.sse.com.cn/commonSoaQuery.dowithsqlId=REITS_BULLETIN(extracted from the platform's own frontend scriptsearch_info.js). The endpoint requires aReferer: https://www.sse.com.cn/header (verified: without it the API returns an empty error payload); theRefereris set accordingly, which matches the existing pattern inlib/routes/sse/disclosure.tsandlib/routes/sse/inquire.tsx. No other anti-bot measures observed.Date window: the API requires
startDate/endDate(it errors without them;startDatemay not be in the future). The handler requests a rolling window of the last 183 days up to tomorrow (to include same-day and pre-announced items), returning the firstlimititems sorted newest-first by the exchange. With ~40 announcements per month for ~60 listed REITs, this window covers any realisticlimitand keeps the first page identical regardless of window size.Item link & enclosure: the announcement PDF (
urlfield joined withhttps://www.sse.com.cn, servingapplication/pdf); verified downloadable.pubDate: from
sseDate(YYYY-MM-DD, Beijing time); parsed withparseDate. The exchange publishes announcement dates only (no time-of-day), matching the handling inlib/routes/sse/disclosure.ts.category: security code, extended fund abbreviation (falls back to
fundAbbr), and announcement type (e.g.508015,中信建投明阳智能新能源REIT,其它).The
pageHelp.pageSizequery carries RSSHub'slimitcommon parameter (first page only); it is an API-required pagination field, same pattern as the mergedszseREITs route.