Skip to content
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

Merge pull request #883 from ScrapeGraphAI/main #884

Open
wants to merge 8 commits into
base: main
Choose a base branch
from

Conversation

VinciGit00
Copy link
Collaborator

Main differences:

Uploading Screenshot 2025-01-12 alle 16.27.18.png…
Screenshot 2025-01-12 alle 16 27 28

@VinciGit00 VinciGit00 linked an issue Jan 12, 2025 that may be closed by this pull request
@dosubot dosubot bot added the size:XS This PR changes 0-9 lines, ignoring generated files. label Jan 12, 2025
Copy link

github-actions bot commented Jan 12, 2025

Dependency Review

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

OpenSSF Scorecard

PackageVersionScoreDetails

Scanned Files

@dosubot dosubot bot added size:M This PR changes 30-99 lines, ignoring generated files. and removed size:XS This PR changes 0-9 lines, ignoring generated files. labels Jan 12, 2025
Copy link

codebeaver-ai bot commented Jan 12, 2025

I added some Unit Tests (average coverage improvement: +33.04%). Check it out here to merge it!

Copy link

codebeaver-ai bot commented Jan 12, 2025

No files changed in the PR

@dosubot dosubot bot added size:L This PR changes 100-499 lines, ignoring generated files. and removed size:M This PR changes 30-99 lines, ignoring generated files. labels Jan 12, 2025
@VinciGit00
Copy link
Collaborator Author

I also run pre commit on the whole dir for

Copy link

codebeaver-ai bot commented Jan 12, 2025

I added some Unit Tests (average coverage improvement: +50.00%). Check it out here to merge it!

@silgon
Copy link

silgon commented Jan 12, 2025

I'm just wondering, is there a reason not to use keyword arguments?
I believe you could have more understandable code, or at least not as many if elses as in the following picture.
image
The example would be:

def search_on_web(
    query: str,
    search_engine: str = "Google",
    max_results: int = 10,
    port: int = 8080,
    timeout: int = 10,
    proxy: str | dict = None,
    serper_api_key: str = None,
    **kwargs
) -> List[str]:
...
 google_search(
                        query,
                        num_results=max_results,
                        proxy=formatted_proxy,
                        **kwargs
                    )

You probably have a reason, you can just ignore this comment in any case. Thx again for the great package =)

@VinciGit00
Copy link
Collaborator Author

This is the definition fo the search function from google_search library.

As you can see is not present the default region

Screenshot 2025-01-12 alle 19 39 37

Copy link

codebeaver-ai bot commented Jan 12, 2025

I added some Unit Tests (average coverage improvement: +50.00%). Check it out here to merge it!

@silgon
Copy link

silgon commented Jan 12, 2025

I see what you mean @VinciGit00 , however if your parameters are in the dictionary of parameters, there are going to be filled with the ** operator. Example:

def display_info(name, age):
    print(f"Name: {name}, Age: {age}")

person_info = {
    'name': 'Alice',
    'age': 30
}

display_info(**person_info)

@VinciGit00
Copy link
Collaborator Author

@silgon take a look now

Copy link

codebeaver-ai bot commented Jan 12, 2025

I added some Unit Tests (average coverage improvement: +50.00%). Check it out here to merge it!

@silgon
Copy link

silgon commented Jan 12, 2025

Nice! 😎

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
size:L This PR changes 100-499 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Language/Country selection
3 participants