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

Refactor to oop approach #54

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

Conversation

miritreus
Copy link

I want to propose a more object oriented approach with this PR. Most notably, the fetching of the html is separated from the extraction of the data from the fetched html pages. The fetched html is saved. The following folder structure is used:

funda save html files

Also fixed some css selectors and did some renaming along the way.

Still lots of room for improvement, but this is a start.

@lethuan007
Copy link

Please note Issue #53 , there probably is an easier way to retrieve all the data using the 'new' API.

@miritreus
Copy link
Author

Please note Issue #53 , there probably is an easier way to retrieve all the data using the 'new' API.

Good one

@AndrewFBel
Copy link

Hey @miritreus,

I found that the scraping module fails when the number_of_pages specified in SearchRequest exceeds the actual (existing) number of pages for the defined search.

I believe it is worth limiting the number_of_pages to the max(last) page returned by the pagination class. What do you think?

image

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.

4 participants