Coder Social home page Coder Social logo

python-youtube-code's People

Contributors

alexrohwer avatar bradostauffer avatar brendankite avatar bwrooney avatar caelan-io avatar gmersy avatar jasongong91 avatar linj66 avatar mikhaillenko avatar paul-graham-1998 avatar tacarpe avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

python-youtube-code's Issues

images don't download

it seems that even when I get it 200 after several 520's the images don't save, is there a reason why?

Image pathname error

I can't seem to figure out why I keep getting this error:
is not a valid pathname to an image.

Any idea why this is happening? I've tried variations of file path names, with " " and without.. I'm on a Linux machine.

image for Data folder

I would like to use my own image for deepfake detection. How can I produce the small face image like yours from videos?

the image doesn't download to a folder

well the code doesn't do anything and it just shows 200,so i tried to modify the code so that the images get stored in a directory ,but still it doesn't work
``
import os
from bs4 import BeautifulSoup
import urllib.request
import requests

os.makedirs('images', exist_ok=True)

url = "https://www.reddit.com/r/BabyYoda"

response = requests.get(url)

if response.status_code != 200:
print(f"Status: {response.status_code} โ€” Try rerunning the code\n")
else:
print(f"Status: {response.status_code}\n")

soup = BeautifulSoup(response.content, "html.parser")
for data in soup.find_all("img", attrs={"alt":"Post image"}):
ll=data.get('src')

imagdownload=requests.get(os.path.join('https://www.reddit.com/'),ll)
img=open(os.path.join('images',os.path.basename(ll),'wb'))
for down in imagdownload.iter_content(10000):
    img.write(down)

``
any idea what to do?

line 104

sorry my bad, nothing is wrong

baby yoda script

I'm using Pycharm + Windows 10. I have your code verbatim but even when I get status code 200 it saves no images. I ran it 'as is' and found nothing, then I changed the file names so they're easier to search for in File Explorer but I cannot locate any images regardless. Any suggestions?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.