Python Forum
Download file from Private GitHub rep
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Download file from Private GitHub rep
#1
Hi,

First of all, I am a Python newbie. I am trying to download a file from private Github repo

import requests
from requests.auth import HTTPBasicAuth
r=requests.get(url="https://dev.xxxxxxxx.com/gitlab/development/xxxxx/-/raw/develop/v6/xxxxx.DatabaseInstaller/Scripts/test.sql",auth=HTTPBasicAuth('[email protected]','mypassword'))
print(r.text)
it returns status code 200 but r.text not brining the actual content, instead an login HTML page with usename and password text box.

How can I get it to work?

Thanks
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  FTP Download of Last File jland47 4 378 Mar-16-2024, 09:15 AM
Last Post: Pedroski55
  download a file from a URL JayManPython 7 1,337 Jun-28-2023, 07:52 AM
Last Post: JayManPython
  Lint and private var names PatM 1 684 Dec-15-2022, 05:08 PM
Last Post: deanhystad
  FTP File Download question / concern cubangt 3 1,303 Jan-06-2022, 07:46 PM
Last Post: cubangt
  Unable to import Private Repo using setup.py Bob786 1 1,738 Sep-02-2021, 04:19 PM
Last Post: snippsat
  download with internet download manager coral_raha 0 2,931 Jul-18-2021, 03:11 PM
Last Post: coral_raha
  download file from url fernandosianet 3 2,297 Oct-29-2020, 03:22 AM
Last Post: bowlofred
  python 3 dns lookup private domain didact 1 2,549 Sep-19-2020, 06:01 PM
Last Post: bowlofred
  [split] Помощь по приватным ключам/Private key help sairam17519 0 1,602 Sep-07-2020, 12:55 PM
Last Post: sairam17519
  How can I download Python files from GitHub? bitcoin10mil 2 2,819 Aug-26-2020, 09:03 PM
Last Post: Axel_Erfurt

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020