DataStorehouse icon indicating copy to clipboard operation
DataStorehouse copied to clipboard

Bug fix and list replaced with deque

Open Bchass opened this issue 2 years ago • 8 comments

Description

Fixed a bug and switched over to a deque instead of a list

Related Issues

https://github.com/neokd/DataStorehouse/issues/112

Changes Made

load_proxy_list() doesn't rely on an absolute path anymore, this wasn't working as intended. rotate_proxy() Switched over to a deque for better efficiency when rotating proxies

Screenshots (if applicable)

N/A

Checklist

Please review and check the following before submitting your pull request:

  • [x] I have followed the project's coding conventions and guidelines
  • [x] I have tested my changes thoroughly
  • [ ] I have added/updated relevant documentation
  • [x] My code follows best practices and is easy to understand
  • [ ] I have added necessary test cases (if applicable)
  • [ ] All existing tests are passing
  • [x] My changes do not introduce any new warnings or errors

Additional Notes

I would like to add test cases for this

Bchass avatar Oct 03 '23 01:10 Bchass

Someone is attempting to deploy a commit to a Personal Account owned by @neokd on Vercel.

@neokd first needs to authorize it.

vercel[bot] avatar Oct 03 '23 01:10 vercel[bot]

Can the proxy be made like an parameter? Like if user set as True then proxy works or else it tries to scrape without proxy.?

neokd avatar Oct 03 '23 01:10 neokd

Can the proxy be made like an parameter? Like if user set as True then proxy works or else it tries to scrape without proxy.?

Are you referring to a user-agent a browser would use?

Bchass avatar Oct 03 '23 02:10 Bchass

No, for now we were thinking that proxy is getting complicated so if we allow user to pass an argument that they want to use scrapper or not.

neokd avatar Oct 03 '23 04:10 neokd

No, for now we were thinking that proxy is getting complicated so if we allow user to pass an argument that they want to use scrapper or not.

I see. I'll look into adding that option for the scraper.

Bchass avatar Oct 03 '23 10:10 Bchass

@Bchass looks good I'll review it fully and merge it. Thinking to publish the scrapper as package on Pypi?

neokd avatar Oct 20 '23 06:10 neokd

Is this project being maintained anymore?

Bchass avatar Dec 01 '23 02:12 Bchass

@Bchass yeah the project is maintained. There was merge conflict so i didn't merge this PR.

neokd avatar Dec 04 '23 14:12 neokd