Buying Edit Open source Python script to Bind to a specific IP address

Discussion in 'Programming' started by fattwam, Aug 29, 2014.

  1. #1
    I am using youtube-dl which is an open source python script to download video from youtube as well as various other websites.

    You can view everything about youtube-dl here - http://rg3.github.io/youtube-dl/
    Here is the youtube-dl git repository - https://github.com/rg3/youtube-dl
    Link to the compiled latest version - https://yt-dl.org/downloads/2014.08.29/youtube-dl

    My server is running CentOS 5 with Python 2.6.2. and has 5 IP address.

    Youtube-dl does not have any options as to which IP it should use for all of its requests which means by default it uses the server Main IP address.

    I need to be able to select which IP the script should bind to when being used. I would like to be able to select by passing an command line argument such as --bindip "12.34.56.78".

    Currently to download a video from youtube via command line its - youtube-dl VIDEOURL
    and i would like to be able to have something like this youtube-dl --bindip "12.34.56.78" VIDEOURL

    I have found several requests on their Git repo to add such a feature but it hasn't actually been implemented. But those can be viewed here if it helps https://github.com/rg3/youtube-dl/search?q=bind&type=Issues&utf8=✓

    If you are able and willing to do something like this please either post or PM me your quote or any other questions.

    Thanks!
     
    fattwam, Aug 29, 2014 IP