-
Notifications
You must be signed in to change notification settings - Fork 8
feat: add infinite scrolling #38
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
GitGuardian id | GitGuardian status | Secret | Commit | Filename | |
---|---|---|---|---|---|
17204754 | Triggered | Generic High Entropy Secret | 928fb9b | scrapegraph-py/examples/sync/smartscraper_infinite_scroll_example.py | View secret |
🛠 Guidelines to remediate hardcoded secrets
- Understand the implications of revoking this secret by investigating where it is used in your code.
- Replace and store your secret safely. Learn here the best practices.
- Revoke and rotate this secret.
- If possible, rewrite git history. Rewriting git history is not a trivial act. You might completely break other contributing developers' workflow and you risk accidentally deleting legitimate data.
To avoid such incidents in the future consider
- following these best practices for managing and storing secrets including API keys and other credentials
- install secret detection on pre-commit to catch secret before it leaves your machine and ease remediation.
🦉 GitGuardian detects secrets in your source code to help developers and security teams secure the modern development process. You are seeing this because you or someone else with access to this repository has authorized GitGuardian to scan your pull request.
Dependency Review✅ No vulnerabilities or license issues or OpenSSF Scorecard issues found.Scanned FilesNone |
Rest LGTM! |
async def scrape_companies(client: AsyncClient, url: str, batch: str) -> None: | ||
"""Scrape companies from a specific YC batch with infinite scroll.""" | ||
try: | ||
response = await client.smartscraper( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
try block should be a linear only
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
update it
companies: List[Company] | ||
|
||
# Initialize the client with explicit API key | ||
sgai_client = Client(api_key="sgai-4cf4a4f5-87f7-457a-8c58-0790ecaf323e") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@VinciGit00 APi key?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
removed
companies: List[Company] | ||
|
||
# Initialize the client with explicit API key | ||
sgai_client = Client(api_key="sgai-4cf4a4f5-87f7-457a-8c58-0790ecaf323e") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We might be exposing a secret here
… with number_of_scrolls parameter
4268dec
to
91c2e17
Compare
scrapegraph-py/examples/async/async_smartscraper_infinite_scroll_example.py
Outdated
Show resolved
Hide resolved
db0a5b3
to
6272be9
Compare
LGTM |
No description provided.