Skip to content

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

Merged
merged 8 commits into from
Jun 16, 2025
Merged

feat: add infinite scrolling #38

merged 8 commits into from
Jun 16, 2025

Conversation

VinciGit00
Copy link
Contributor

No description provided.

Copy link

gitguardian bot commented Jun 10, 2025

⚠️ GitGuardian has uncovered 1 secret following the scan of your pull request.

Please consider investigating the findings and remediating the incidents. Failure to do so may lead to compromising the associated services or software components.

🔎 Detected hardcoded secret in your pull request
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
  1. Understand the implications of revoking this secret by investigating where it is used in your code.
  2. Replace and store your secret safely. Learn here the best practices.
  3. Revoke and rotate this secret.
  4. 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


🦉 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.

Copy link

github-actions bot commented Jun 10, 2025

Dependency Review

✅ No vulnerabilities or license issues or OpenSSF Scorecard issues found.

Scanned Files

None

@VinciGit00
Copy link
Contributor Author

Screenshot 2025-06-10 alle 15 33 50

@Vikrant-Khedkar
Copy link
Collaborator

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(
Copy link
Collaborator

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

Copy link
Contributor Author

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")
Copy link
Collaborator

Choose a reason for hiding this comment

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

@VinciGit00 APi key?

Copy link
Contributor Author

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")
Copy link
Collaborator

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

@Vikrant-Khedkar
Copy link
Collaborator

LGTM

@VinciGit00
Copy link
Contributor Author

works
Screenshot 2025-06-16 alle 11 31 41

@VinciGit00 VinciGit00 merged commit ba783f8 into main Jun 16, 2025
5 of 6 checks passed
@VinciGit00 VinciGit00 deleted the add-infinite-scrolling branch June 16, 2025 09:32
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