Git Product home page Git Product logo

commitstrip-scraper's People

Contributors

anshuman73 avatar

Watchers

 avatar  avatar

Forkers

zipus

commitstrip-scraper's Issues

Some Images can't be downloaded because of unicode strings in url

URLS like - " http://www.commitstrip.com/wp-content/uploads/2016/01/Strip-Les-câbles-du-laptop-650-finalenglish.jpg " contain unicode characters and thus throw an error in urlretrieve().

Possible fix could be to convert this to a properly encoded url. Tests show that in that way, the strip can be downloaded.
For example, for the link above, urlretrieve('http://www.commitstrip.com/wp-content/uploads/2016/01/Strip-Les-c%C3%A2bles-du-laptop-650-finalenglish.jpg') works fine.

Doesn't Work on Windows

Currently, the program does not provide an extension to the file name. This works fine on Linux (Tested with Ubuntu 14.04) but doesn't seem to work with Windows as it requires file names. Testing on OSX is also required.
we cannot simply append ".jpg" to the file name as each image is different. We will have to get each file extension and put it explicitly.

Possible Fix - the link has the file extension mentioned. the same can be parsed and added to the file name to make this work.

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.