Skip to content

feat: add noLinks and lang parameters to web.scrape method#26

Open
pvbang wants to merge 1 commit into
supadata-ai:mainfrom
pvbang:feat/add-nolinks-lang-params
Open

feat: add noLinks and lang parameters to web.scrape method#26
pvbang wants to merge 1 commit into
supadata-ai:mainfrom
pvbang:feat/add-nolinks-lang-params

Conversation

@pvbang

@pvbang pvbang commented Jun 13, 2026

Copy link
Copy Markdown

Summary

Add support for the missing noLinks and lang parameters in the web.scrape() method to maintain feature parity with the REST API documentation.

Changes

  • Added no_links (Optional[bool]) parameter to web.scrape() - controls whether to exclude Markdown links from the response
  • Added lang (Optional[str]) parameter to web.scrape() - language to request content in (ISO 639-1 code)
  • Both parameters are optional and fully backward-compatible
  • Added 4 new tests covering all parameter combinations

Tests

All 60 tests pass (including 4 new tests for the added parameters).

Closes #19

Add support for the missing noLinks and lang parameters in the web
scrape function to maintain feature parity with the REST API.

- noLinks (bool): Whether to exclude Markdown links from the response
- lang (str): Language to request content in (ISO 639-1 code)

Both parameters are optional and backward-compatible.

Closes supadata-ai#19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Missing support for noLinks and lang parameters

1 participant