upload file video on youtube using a python programm - python-3.x

I m working on a little project and I need a way to upload video on youtube using python programm, I searched on github and I find a programm that do this but it is in python2 and I need one in python3 also it is very difficult to manipulate. So does someone knows some programms thats upload video on youtube and it is written in python3

You didn't mention the program that you had found, so I searched github.
The first hit is https://github.com/tokland/youtube-upload, and according to the readme, this is compatible with Python 3.x. You will need the google api python client too, and of course you will need an api key to use with it, but these are available.
An alternative is shoogle https://github.com/tokland/shoogle, which only supports python 3.x

Related

How to create a software that can be used as a browser extension in python?

I have written a python program to download YouTube videos. I want to add it as an extension to browser, but I have read that browser doesn't run python scripts. So how can I deploy it? Can I convert it into a software which when installed can be added as a plug-in to the browser? Or is there any other way of doing it?
I assume you are aware of the chrome extension/plugin development, If not, please go through online tutorials, Fast forward...
Adding Python to the Chrome extension
We have two options to add Python into a chrome extension:
Method 1: Include
Brython
in an iframe (requires server)
To run Python in the browser you have several options including Brython and emcascripten.
Method 2: Compile Python to Javascript using
Rapydscript
(best, serverless, pure extension.)
There are several tools to compile Python to Javascript. Rapydscript works fine, Pyjs does not work well with chrome.
Further, you can do your research.

Python 3.5 support for Google-Contacts V3 API

I'm trying to work with the Google contacts API using Python 3.5, this presents an issue because the gdata library that is supposed to be used is not up to date for use with Python 3.5. I can use oAuth2 to grab the contact data in JSON and use that in my project, but part of the application is also adding a contact into the users contact list. I cannot find any documentation on this part, besides using the Gdata library, something I cannot do. The majority of project requires Python 3 so, switching to Python 2 would just not be something I could easily do. Is there any further documentation or a work around using the gdata library with Python 3? I'm actually very surprised that the contacts API seems so thinly supported on Python. If anyone has any further information it would be much appreciated.
For me I had to install like pip install git+https://github.com/dvska/gdata-python3 (without the egg). Since the package itself contains src dir. Otherwise import gdata would fail. (python 3.6.5 in virtual env)
GData Py3k version: pip install -e git+https://github.com/dvska/gdata-python3#egg=gdata

Is twisted conch available in python 3?

I noticed twisted.conch is not part of dist3.py for python 3.Is it not yet migrated to python 3? I dont find any recent updates on the same when i search. I was planning to use it to establish multiple telnet sessions which ll help asses logs in my django app and also help debug live django application using manhole.
IS there an alternate i can use for my use case?
I checked out asyncio. However, my understanding is it might freeze the application during debug which would not suit my need.do correct me if my understanding is wrong..
pls point me to latest twisted package for python 3 with conch support if available . if not, do you have any alternate suggestions?

python scripts with metasploit-framework

I have installed metasploit-framework from git. It's working fine. I have followed tutorial from Metasploit Framework.
Now I would like to add more scripts to this framework, like scripts from Avg Security Scripts
I would like to know, How can we install and tell metasploit to use these scripts?
Any help would be appreciated as it may help a step forward.
Metasploit is written in Ruby and it doesn't support modules or scripts written in Python. However, Metasploit does have an RPC interface using MSGPACK.
Here are some tutorials on using Python + MSGPACK + Metasploit:
https://www.fishnetsecurity.com/6labs/blog/scripting-metasploit-python
And here is a library that SpiderLabs put out for MSF RPC written in Python: https://github.com/SpiderLabs/msfrpc
Check out the guide here.
it's pretty easy, using Metasploit's default local module search path, $HOME/.msf4/modules, and there are just a couple caveats:
Mirror the "real" Metasploit module paths
Create an appropriate category
So if you're root user it is just a case of dropping in the modules into the correct directory strucutre at /root/.msf4/modules.

Is there a YouTube library for Python 3?

I want to build a Python app to automate some YouTube tasks, so I went to grab their files at https://developers.google.com/api-client-library/python/ and to my surprise, it's a Python 2 library.
I was looking around to see if there was an updated version hidden somewhere, but I wasn't able to find one, and I guess I'd rather ask here than waste more time following random links on YouTube.
Is there an official Python 3 library for YouTube?
If not, what are my options for building a Python 3 application which can retrieve YouTube video data?
The one you mentioned is sole official Python client library and I don't think there's official Python3 version of it.
But if you don't need whole wrapper of all YouTube APIs, it's more straight forward to call API directly using standard http.client module or 3rd party requests module.
Indeed there is pytube for Python3.
Example Download of a video:
from pytube import YouTube
# creating YouTube object
yt = YouTube("https://www.youtube.com/watch?v=1csFTDXXULY")
# accessing video stream of YouTube obj.(first one, more available)
stream = yt.streams.first()
# download into working directory
stream.download()

Resources