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

How get <my client name> and <my identity token> and <my cookie> #1

Closed
AliAkhtari78 opened this issue Apr 7, 2020 · 5 comments
Closed

Comments

@AliAkhtari78
Copy link

AliAkhtari78 commented Apr 7, 2020

Thanks for cloning PyTube,
I read this link How to avoid HTTP error 429 (Too many requests) in python while using pytube library but I couldn't find out how I can extract and and you mentioned.
I did search network tap inside chrome dev tools, but I couldn't find these informations.

@emrebayramc
Copy link
Owner

Hi Ali,
goto your browser; open dev tools/network tab and goto youtube.
Then you will see Headers.

For example for Chrome;
1- you click top-right 3 dots to open chrome menu
2- Click "More Tools" then "Developer tools.
3- Click Network tab.
4- Open youtube on this browser tab.
5- You will see http requests flowing; click one of them. And you will see Header tab.

An example from web:
https://i.stack.imgur.com/1dolH.png

@emrebayramc
Copy link
Owner

@AliAkhtari78
Response to your edited question:
if you do not send any requests; it will be empty.
you need to open youtube and click one of videos AFTER you opened the network tab.

@AliAkhtari78
Copy link
Author

@AliAkhtari78
Response to your edited question:
if you do not send any requests; it will be empty.
you need to open youtube and click one of videos AFTER you opened the network tab.

yes, I found all the information I was looking for.

@AliAkhtari78
Copy link
Author

Can I suggest you to use replace requests with selenium? I think it will solve all the issues.

@emrebayramc
Copy link
Owner

That makes sense; impersonating would be easier. I might do it when I have time(maybe next week). Thanks for the suggestion!

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

No branches or pull requests

2 participants