Skip to content

Conversation

@VinciGit00
Copy link
Contributor

@VinciGit00 VinciGit00 commented Jan 10, 2026

Summary

  • Add time_range parameter to the searchscraper tool and client method
  • Supports filtering search results by recency: past_hour, past_24_hours, past_week, past_month, past_year
  • Aligns MCP server with API changes from ScrapeGraphAI/sgai-api#386
  • Updated documentation to reflect SDK changes from:

Documentation Changes

  • Updated README.md - Added time_range parameter to searchscraper docs
  • Updated .agent/README.md - Updated MCP tools reference table
  • Updated .agent/system/project_architecture.md - Updated searchscraper tool documentation with time_range parameter

Test plan

  • Verify searchscraper tool accepts time_range parameter
  • Test with each valid time_range value
  • Confirm parameter is properly passed to the API

🤖 Generated with Claude Code

Copy link
Collaborator

@Vikrant-Khedkar Vikrant-Khedkar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

only need to remove steps param from markdownify , rest looks good

self,
website_url: str,
headers: Optional[Dict[str, str]] = None,
steps: Optional[List[str]] = None,
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we should remove steps , as we dont have steps param for markdownify

website_url: str,
ctx: Context,
headers: Optional[Dict[str, str]] = None,
steps: Optional[List[str]] = None,
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we should remove steps , as we dont have steps param for markdownify

VinciGit00 and others added 2 commits January 28, 2026 08:44
Add support for filtering search results by time range in the
searchscraper tool. This aligns with the API changes in sgai-api#386.

The time_range parameter accepts: past_hour, past_24_hours, past_week,
past_month, or past_year to filter search results by recency.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
- Add time_range parameter to searchscraper documentation
- Document supported values: past_hour, past_24_hours, past_week, past_month, past_year
- Update MCP tools reference table
- Add example usage with time_range
- Update changelog to reflect SDK changes (scrapegraph-py#77, scrapegraph-js#2)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@VinciGit00 VinciGit00 changed the title Update server.py feat: add time_range parameter to searchscraper Jan 28, 2026
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.

3 participants