Skip to content

Commit

Permalink
scraper: fix biliarticle
Browse files Browse the repository at this point in the history
  • Loading branch information
shirokurakana committed Dec 28, 2023
1 parent 63da147 commit 88cbf5e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion scraper/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ check: done
blank: WIP

- [x] Bilibili (video)
- [ ] Bilibili (article)
- [x] Bilibili (article)
- [x] Acfun (video)
- [x] Acfun (article)
- [x] YouTube (video)
Expand Down
3 changes: 3 additions & 0 deletions scraper/utils/match.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,9 @@ async def match_biliarticle(text: str) -> str:
if match_cv := re.match(r'.*(?<![A-Za-z0-9])(?:CV|cv)(\d+)', text, re.DOTALL):
# cv号
return match_cv.group(1)
if match_cvm := re.match(r'.*bilibili.com/read/mobile/(\d+)', text, re.DOTALL):
# cv号 (移动端)
return match_cvm.group(1)


async def match_twitter(text: str) -> str:
Expand Down

0 comments on commit 88cbf5e

Please sign in to comment.