Home Upgrade Search Memberlist Extras Hacker Tools Award Goals Help Wiki Contact

Python 

Web Scrapping Python3 (github)

Hi, I have a question because for some time I have been trying to make a script using bf4 and reqests through which after giving the url from githuba downloaded this package for me 🤦‍♂ . Something like git clone on linux only made with code and not a command if someone would be able to send some link or direct code I would be extremely grateful 🤩
(Nov 24, 2019 10:18 AM)4rmaged0n Wrote:  Hi, I have a question because for some time I have been trying to make a script using bf4 and reqests through which after giving the url from githuba downloaded this package for me  🤦‍♂  . Something like git clone on linux only made with code and not a command if someone would be able to send some link or direct code I would be extremely grateful  🤩

Github-> download as zip?
(Nov 24, 2019 11:43 AM)Charger Wrote:  Github-> download as zip?
I wanna do this with code
(Nov 24, 2019 12:34 PM)4rmaged0n Wrote:  I wanna do this with code

....
Why?

Just git clone or use a git library
cant you just curl the zip?

Code
curl -LO https://github.com/[github-id]/[repo]/archive/master.zip
http://sunjester.rf.gd - proxies, logins, scanner results
(Nov 24, 2019 12:52 PM)realsunjester Wrote:  cant you just curl the zip?

Code
curl -LO https://github.com/[github-id]/[repo]/archive/master.zip

And with that call it via

Code
import os

os.system("curl -LO https://github.com/[github-id]/[repo]/archive/master.zip")
You could use pygit I think it's able to do it.
I wrote you an example that doesn't depend on curl and uses Python3 standard library, hope you can learn something from it.



Possibly Related Threads...
Thread / Author Replies Views Last Post
[Python] by killaxiaJul 13, 2022 05:26 AM 8 299 Jul 13, 2022 05:26 AM
Last Post: killaxia
[Python] by 0u1lawAug 28, 2020 01:22 PM 6 356 Aug 28, 2020 01:22 PM
Last Post: Pernat1y
[Python] by 4rmaged0nDec 22, 2019 04:44 AM 3 320 Dec 22, 2019 04:44 AM
Last Post: Emp3hack