How to upload video on dailymotion using python sdk | ~world’s No.1 exposed Trick

  • Hi friends in this article we are going to see how to upload video on dailymotion using python sdk.
upload video to dailymotion using python sdk and command prompt
  • Next you should have developer account in dailymotion account.
  • Creating a developer account is easier one in dailymotion.
1.Login to your dailymotion account
Login-to-dailymotion-account
2.Go to the below url to create api key.
create-new-api-key-dailymotion
3.Fill the application name and its description with your desired name.
fill-application-name-and-description-at-new-api-key-dailymotion
4.I am using localhost with a dummy folder url as Application website . Actually we can give any url but i recommend to give a localhost url.
5. Fill the application purpose .
6.Again I am filling callback url with my localhost dummy folder url .
call-back-url-api-key-dailymotion
7. Enter the captcha and finally click create api key.
click-create-api-key-button-dailymotion
Now you will get the api key details.
api-key-details-dailymotion
8. Next Go to the below developer url and choose sdk from the tools menu.
sdk-tools-developer-dailymotion
9.Click python sdk and click git hub link
python-sdk-dailymotion
10. Download the zip file and extract it in your computer .
download-python-sdk-from-github-dailymotion
11.I am using python sdk so I need to download python to my computer.If you don’t have python in your computer then dailymotion python files cannot be identified by command prompt.
12.Goto official python website and download it.I am downloading windows 32 bit python software.
python-windows32-download
13.When downloading finished install the python. Note the python installing location
note-python-installing-location
14.Next open dailymotion sdk file and edit config file with notepad++ .
config-python-file-dailymotion-python-sdk

edit-config-file-with-notepad-plus-plus
15.Now fill the api key details in config file .
fill-api-key-details-in-config-file
16. To find the username Go to the developer account and choose api explorer from tools menu.
17. Choose api key and under user and click get user I d. Now click test. Now you can get username in the name of id in the result.
get-username-id-in-api-explorer-dailymotion
18. Password is your dailymotion password which you use to login.
19. Again url is the local host url which mentioned in api key.
Finally save the config file.

///////////////////////////////////////////////////////////////////////////
Next we need to add video in dailymotion’s example folder which we want to upload in dailymotion.
add-video-at-dailymotion-examples-folder
After adding video return to dailymotion main folder and edit test dailymotion file with notepad++.
edit-test-dailymotion-with-notepad-plus-plus
Scroll down and find videos dot mp4 .
Replace it with added video file name correctly.
Also you can change title and channel if you want
Finally click save.
change-title-and-video-path-at-test-dailymotion-file
Next open command prompt
We need to go dailymotion folder in command prompt.
To do this first copy the address of dailymotion folder
copy-address-as-text
Now in command prompt type cd/d and paste the address of dailymotion folder and press enter
change-file-location-in-command-prompt
Next we need to type setup[dot]py install
Now command prompt took some time to finish processing.
When the process finished type pip install nose in command prompt.

Sometime it will tell pip is not recognized .
pip-not-recognized-in-command-prompt
To solve this we need to set environmental variables in system advanced settings option.
///////////////////////////////////////////////////////////////////////////////////
Goto control panel
Choose system and security
And choose system
choose-syatem-in-windows-32
Click Advanced system settings
Choose advanced tab
Click environment variables
environment-variables-syatem-properties
In the second column choose path .Here we need to add python script location
I already mentioned note the python location.
Sometimes appdata location is hided. so just add backslash and type appdata and reach python location.
appdata-location
Now copy the python script location
copy-python-scripts-address-location
Return to advanced tab choose path and click edit
edit-path
If there is no semicolon , first type semicolon.
After that paste the python script location address .
add-path-for-python-scripts
And finally click all ok buttons.
/////////////////////////////////////////////////////////////////////////////////////////////////////
Close and open the command prompt
Again goto dailymotion folder.
Next type setup[dot]py install.
When process finished
Type pip install nose
This time it will install pip including nose.
pip-install-nose
After installation type nosetest –v
nosetest
Depending upon the size of video file it will take timeto upload.
Finally it will tell ok.
video-uploaded-successfully-to-dailymotion-using-python-sdk
Now check your dailymotion account in browser to see the uploaded video.
uploaded-video-at-dailymotion
//////////////////////////////////////////////////////////////////////////////////////////
Also Check this concept as video below.






























































































No comments:

Powered by Blogger.