facebook python script

45 views
Skip to first unread message

Ahmad

unread,
Jul 9, 2018, 1:46:34 PM7/9/18
to Django users
Hello everyone, I hope all of you will be fine.

I want a script to download facebook video (SD or HD) using python. 

if anyone has already please send me 

or if you have any other material which can help me. 

Waiting for you reply. Thanks

Kasper Laudrup

unread,
Jul 9, 2018, 2:00:50 PM7/9/18
to django...@googlegroups.com
Hi Ahmed,

On 2018-07-09 19:46, Ahmad wrote:
> Hello everyone, I hope all of you will be fine.
>
> I want a script to download facebook video (SD or HD) using python.
>

I highly suggest using the requests library for doing HTTP client
communication:

http://docs.python-requests.org

It's a lot easier to use and more "pythonic" than any of the HTTP
libraries found in the Python standard library.

You probably need a way to get the URL for the video to download. I
don't have any experience with it, but I would probably look into this
for a start:

https://facebook-sdk.readthedocs.io/

I imagine it should be possible to use that library to find the URL for
whatever video it is you want to download, but as I said, I have no
experience with that.

That's where I would start at least.

Kind regards,

Kasper Laudrup

Ahmad

unread,
Jul 9, 2018, 2:17:33 PM7/9/18
to Django users
Thank you very much dear. It will help alot me. 

mottaz hejaze

unread,
Jul 9, 2018, 10:18:12 PM7/9/18
to django...@googlegroups.com
i think you gonna need to scrap the page first . then use requests library

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users...@googlegroups.com.
To post to this group, send email to django...@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/1fc1f9ee-b1b6-40fe-a80b-d1c0b09a15a5%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Masoud Sadri

unread,
Jul 10, 2018, 1:46:43 AM7/10/18
to Django users
Hi, 
you can use youtube-dl module.

Reply all
Reply to author
Forward
0 new messages