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

Added parser for comet.co freelancers profile #1

Merged
merged 4 commits into from
Sep 11, 2022
Merged

Conversation

nightbloos
Copy link
Owner

Added service for scraping freelancer profile from comet.co

Service perform following logic

  • connects to comet.co
  • login
  • after successful login, go to profile page
  • parse page, and find all required data

Is possible additionally to control chrome DP behaviour by ENV variables

  • Display or hide chromedp debug output (Default: hide)
  • To work in headless mode, or display the browser. (Default: headless mode)

At this point, defining user credentials is possible only by ENV variables

As part of introduction into `chromedp`, was implemented very early MVP script, with following path
- login
- go to profile path
- pick full name and subtitle
Finished parsing for all required blocks.

Also function covered with tests with local html file.
- is possible to test parser by TDD
- we are sure that this part of code is isolated and "self-sufficient" for being able to get all required data
- during development and debugging, we don't need to wait flow "from login to profile page", because we have local HTML will all data included
Moved logic and models into independent service, as part of preparing for next steps (DB, HTTP api, etc)

Fixed some logic in parsing.
Assumptions that `axeptio widget` should be visible for submitting form was wrong. Simple sleep was enough.
@nightbloos nightbloos closed this Sep 11, 2022
@nightbloos nightbloos reopened this Sep 11, 2022
@nightbloos nightbloos merged commit d6ac320 into main Sep 11, 2022
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.

1 participant