title: About uploading video to YouTube form URL by google colabratorary
body: <p>I am trying to use the Google colab pages for uploading video to YouTube only by inserting the video file (for example http://???.com/video.mp4).</p>
  <p>So I have tried to find some <a href="https://www.google.com/search?q=python%20code%20for%20uploading%20video%20to%20YouTube%20by%20URL&amp;rlz=1C1BNSD_enIR973IR973&amp;oq=python%20code%20for%20uploading%20video%20to%20YouTube%20by%20URL&amp;aqs=chrome..69i57&amp;sourceid=chrome&amp;ie=UTF-8" rel="nofollow noreferrer">python code for uploading video to YouTube by URL</a> and found below post (<a href="https://github.com/tokland/youtube-upload" rel="nofollow noreferrer">GitHub project link</a>) :</p>
  <p><a href="https://i.stack.imgur.com/TxCMc.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/TxCMc.png" alt="enter image description here" /></a></p>
  <p>And tried to do it in <a href="https://colab.research.google.com/github/soheilpaper/-tft-2.4-ili9341-STM32/blob/master/Youtube_url_Uploader.ipynb#scrollTo=0gjmoto3c9z2" rel="nofollow noreferrer">the below colab page</a> and get some error, like below:</p>
  <pre><code>% cd '/content/youtube-upload-master'
  ! PYTHONPATH=. python bin/youtube-upload --title=&quot;A.S. Mutter&quot;'/content/youtube-upload-master/SQUID GAME Split My Family on Different TEAMS! (FGTeeV ROBLOX Red Light Green Light pt 2 Chapter 4)-p-b4R6dOuJQ.mp4.part'
  
  
  </code></pre>
  <p>error:</p>
  <pre><code>/content/youtube-upload-master
  Using client secrets: /root/.client_secrets.json
  Using credentials file: /root/.youtube-upload-credentials.json
  Traceback (most recent call last):
    File &quot;/usr/local/lib/python3.7/dist-packages/oauth2client/clientsecrets.py&quot;, line 121, in _loadfile
      with open(filename, 'r') as fp:
  FileNotFoundError: [Errno 2] No such file or directory: '/root/.client_secrets.json'
  
  During handling of the above exception, another exception occurred:
  
  Traceback (most recent call last):
    File &quot;bin/youtube-upload&quot;, line 10, in &lt;module&gt;
      main.run()
    File &quot;/content/youtube-upload-master/bin/../youtube_upload/main.py&quot;, line 290, in run
      sys.exit(lib.catch_exceptions(EXIT_CODES, main, sys.argv[1:]))
    File &quot;/content/youtube-upload-master/bin/../youtube_upload/lib.py&quot;, line 44, in catch_exceptions
      fun(*args, **kwargs)
    File &quot;/content/youtube-upload-master/bin/../youtube_upload/main.py&quot;, line 283, in main
      run_main(parser, options, args)
    File &quot;/content/youtube-upload-master/bin/../youtube_upload/main.py&quot;, line 196, in run_main
      youtube = get_youtube_handler(options)
    File &quot;/content/youtube-upload-master/bin/../youtube_upload/main.py&quot;, line 180, in get_youtube_handler
      get_code_callback=get_code_callback)
    File &quot;/content/youtube-upload-master/bin/../youtube_upload/auth/__init__.py&quot;, line 39, in get_resource
      flow = get_flow(client_secrets_file, scope=YOUTUBE_UPLOAD_SCOPE)
    File &quot;/usr/local/lib/python3.7/dist-packages/oauth2client/_helpers.py&quot;, line 133, in positional_wrapper
      return wrapped(*args, **kwargs)
    File &quot;/usr/local/lib/python3.7/dist-packages/oauth2client/client.py&quot;, line 2135, in flow_from_clientsecrets
      cache=cache)
    File &quot;/usr/local/lib/python3.7/dist-packages/oauth2client/clientsecrets.py&quot;, line 165, in loadfile
      return _loadfile(filename)
    File &quot;/usr/local/lib/python3.7/dist-packages/oauth2client/clientsecrets.py&quot;, line 125, in _loadfile
      exc.strerror, exc.errno)
  oauth2client.clientsecrets.InvalidClientSecretsError: ('Error opening file', '/root/.client_secrets.json', 'No such file or directory', 2)
  </code></pre>
  <p>So if possible I like to have some comment to doing by suggesting some others' python module or fixing the above error.</p>
  <p>Thanks</p>