linvo-scraper icon indicating copy to clipboard operation
linvo-scraper copied to clipboard

bug: fix search by filter bug

Open Emerson1337 opened this issue 2 years ago • 0 comments

Description

There are an error when the function LinvoScraper.services.scraper.process() is called. The new URL returned it's weird and broken!

With this refactor the functionality works fine!

When a new url is generated by Linvo, searching using filters (https://www.linkedin.com/search/results/people?keywords=programmer), the results show a broken URL, like that: image

To solve it I just changed from the build the follow code lines: it: image

to it: image

the reason of .replace('%3F', '') it's because the stringify it was changing ? to "%3f" causing errors.


Issue Ticket Number

Fixes #25


Type of change

  • [ ] Bug fix (non-breaking change which fixes an issue)
  • [ ] New feature (non-breaking change which adds functionality)
  • [X] Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • [ ] This change requires a documentation update

Checklist:

  • [X] I have followed the contributing guidelines of this project as mentioned in CONTRIBUTING.md
  • [X] I have checked to ensure there aren't other open Pull Requests for the same update/change?
  • [X] I have performed a self-review of my own code
  • [X] I have commented my code, particularly in hard-to-understand areas
  • [X] I have made corresponding changes needed to the documentation

Emerson1337 avatar Dec 30 '22 19:12 Emerson1337