-
Notifications
You must be signed in to change notification settings - Fork 13
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
Cleared the zip from faulty AgentNames #10
base: master
Are you sure you want to change the base?
Conversation
Some of them contained ["] inside the UserAgent value so I just did a search on all of them and removed the enclosing quotes Oh, also added an init parrametter in case you simply wanna get all the possible 300k configurations for some reason, I mean this god forsaken package loads all of them in your memoery at init eitherway, you might as well use them
I mean last update was 5 years ago This might as well be my start in open source contributing |
It'd be cool if you did, @iVictory2004. If you need a list of headers to start with, this thread is a good starting spot: https://gist.github.com/pzb/b4b6f57144aea7827ae4 |
I already did yo, look at the commit, try to unzip it and see it no longer has that. Problem is they won't merge it to main. Might have to fork it? |
Lookin' at the last time there was a merge into this repo, it would likely be good to just fork it. |
O shi I forgot how this works, sure will |
https://github.com/iVictory2004/random_user_agent aight here you go idk how you import it or just clone it but here you go |
Based on how I understand |
thanks @michplunkett
learning sum new erryday, thanks a lot man, have no idea how i didn't see this 2 weeks ago |
a yes it also says there i forgor 💀
looks better
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you please share the list of the updated User Agent entries in a separate ".txt" file? It will be easy for me to verify the updated user agents if I can have the list of updated user agents.
@@ -14,9 +14,11 @@ class UserAgent: | |||
'popularity': [], | |||
} | |||
|
|||
def __init__(self, limit=None, *args, **kwargs): | |||
def __init__(self, all =False, limit=None, *args, **kwargs): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Loading all the user agents can be achieved as follows:
user_agent_rotator = UserAgent()
user_agents = user_agent_rotator.get_user_agents()
There is no need for the all
parameter. We can revert these code changes.
It's better to add an update to the README.md
mentioning how can we load all the user agents.
@@ -1,6 +1,12 @@ | |||
Random User Agents | |||
================== | |||
|
|||
Use this command to install this forked version: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please revert these documentation updates. After the PR merge these changes will become part of the documentation and will misguide the developers.
|
||
pip install random_user_agent | ||
|
||
```bash |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please revert this change. The developers will be installing the package from the PyPI and this command will not install the intended version of the package.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sowy I will, I just wanted ppl to be able to clone my fork.
I honestly don know if I can still find the ones I've changed but I'mma look up the code I used for it later aigjt |
I'm pretty sure this Closes #9 of @matt-slalom
Some of them contained ["] inside the UserAgent value so I just did a search on all of them and removed the enclosing quotes
Oh, also added an init parrametter in case you simply wanna get all the possible 300k configurations for some reason, I mean this god forsaken package loads all of them in your memoery at init eitherway, you might as well use them