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

Cleared the zip from faulty AgentNames #10

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

viktorashi
Copy link

@viktorashi viktorashi commented Jun 17, 2023

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

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
@viktorashi
Copy link
Author

I mean last update was 5 years ago This might as well be my start in open source contributing

@viktorashi viktorashi mentioned this pull request Jun 17, 2023
@viktorashi viktorashi closed this Jun 17, 2023
@viktorashi viktorashi reopened this Jun 17, 2023
@michplunkett
Copy link

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

@viktorashi
Copy link
Author

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?

@michplunkett
Copy link

Lookin' at the last time there was a merge into this repo, it would likely be good to just fork it.

@viktorashi
Copy link
Author

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

@viktorashi
Copy link
Author

Lookin' at the last time there was a merge into this repo, it would likely be good to just fork it.

https://github.com/iVictory2004/random_user_agent aight here you go idk how you import it or just clone it but here you go

@michplunkett
Copy link

Based on how I understand pip, you should likely update the README for your version so that it makes use of this: https://mathdatasimplified.com/2021/07/28/pip-install-e-install-forked-github-repository-using-pip/

@viktorashi
Copy link
Author

Based on how I understand pip, you should likely update the README for your version so that it makes use of this: https://mathdatasimplified.com/2021/07/28/pip-install-e-install-forked-github-repository-using-pip/

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
Copy link
Owner

@Luqman-Ud-Din Luqman-Ud-Din left a 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):
Copy link
Owner

@Luqman-Ud-Din Luqman-Ud-Din Oct 9, 2023

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:
Copy link
Owner

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
Copy link
Owner

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.

Copy link
Author

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.

@viktorashi
Copy link
Author

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.

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

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.

Bad user agent entry
3 participants