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 to get list titles grammatically #10189

Closed
moiseyo opened this issue Jul 29, 2016 · 2 comments
Closed

How to get list titles grammatically #10189

moiseyo opened this issue Jul 29, 2016 · 2 comments

Comments

@moiseyo
Copy link

@moiseyo moiseyo commented Jul 29, 2016

Description of your issue, suggested solution and other information

I'd like to use python code to retrieve ids and titles .

Is there any samples ?

@dstftw
Copy link
Collaborator

@dstftw dstftw commented Jul 29, 2016

from __future__ import unicode_literals

from youtube_dl import YoutubeDL

with YoutubeDL({}) as ydl:
    info_dict = ydl.extract_info('BaW_jenozKc', download=False)
    # info_dict['id']
    # info_dict['title']
@dstftw dstftw closed this Jul 29, 2016
@moiseyo
Copy link
Author

@moiseyo moiseyo commented Aug 11, 2016

Thank you , I made a little extension :

entries= info_dict['entries']
for e in entries:
print e['id']
print e['title']

Moisey O

moiseyoys@gmail.com
[image: linkedinbutton] https://www.linkedin.com/in/oysgeltm
The view changes only for the leading dog.

On Fri, Jul 29, 2016 at 10:11 AM, Sergey M. notifications@github.com
wrote:

from future import unicode_literals
from youtube_dl import YoutubeDL
with YoutubeDL({}) as ydl:
info_dict = ydl.extract_info('BaW_jenozKc', download=False)
# info_dict['id']
# info_dict['title']


You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
#10189 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/AFEYql1SONTQuJskc31OGekJOMXPQ1nYks5qagoLgaJpZM4JYNLi
.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.