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

soup next page #2

Open
p-acDev opened this issue Aug 25, 2022 · 3 comments
Open

soup next page #2

p-acDev opened this issue Aug 25, 2022 · 3 comments
Labels
good first issue Good for newcomers help wanted Extra attention is needed

Comments

@p-acDev
Copy link
Owner

p-acDev commented Aug 25, 2022

when applying the topic filtering, GitHub only render few repos.
In the beautiful soup process, how can we directly get all of the repos without manually click on "see more" button ?

@p-acDev p-acDev added help wanted Extra attention is needed good first issue Good for newcomers labels Aug 25, 2022
@AlexMihalache99
Copy link

BeautifulSoup is pulling data out of HTML and XML files.

That means is a static way of extracting data.
Because it is static it does not work on webpages that load the results dynamically, for example, your web page that has a load more button instead of a page number bar.

A solution for this is using a library that scrapes the data dynamically.

Selenium is such a library that might satisfy your needs.

@p-acDev
Copy link
Owner Author

p-acDev commented Aug 29, 2022

Hello @AlexMihalache99 , humm ok thanks a lot. I will create a new branch and investigate this library which I have never used.
Also feel free to implement if you wish =D.

@impeccable16
Copy link

Hi @p-acDev
To directly get all the repositories without manually clicking the "see more" button when using Beautiful Soup for topic filtering on GitHub, you can make use of the GitHub API. The API provides a way to search repositories based on topics and provides all the relevant information in a single response.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

3 participants