Message from Python discussions
from swampy.TurtleWorld import *
from math import pi
def polygon(t, length, n):
degrees = 360.0/n;
for i in range(n/2):
def circle(t, r):
circumference = pi*r
n = int(round(circumference))
polygon(t, 1, n)
world = TurtleWorld()
bob = Turtle()
bob.delay = 0.001
a = int(raw_input("Enter the radius"))
— I want the turtle to draw half circles multiple times with the given radius. The code works but if you make it draw few times it starts to go upwards.
— I want to keep him straight
— Can we fatch data from link? Example :- Lets take video from fb or youtube and i need to download it with different quality. So my question is python can fatch detail and show us different video quality ?
— Can you provide little information about it or any google source? I used urllib but i fail..
— Here's an example for doing the YouTube part: https://github.com/nficano/pytube
— Thank you . :)
— For the Facebook part, here's another example I found: https://pythontips.com/2018/04/23/reverse-engineering-facebook-video/ or maybe this https://github.com/LarbiBekka34/fb-video-dl/blob/master/src/fb-video-dl.py
I guess just read the source code (it's tiny) and see how it works.
youtube-dl is da bezt 😘