Author Topic: [Python] PictureGrabber  (Read 2158 times)

0 Members and 7 Guests are viewing this topic.

Offline Kulverstukas

  • Administrator
  • Zeus
  • *
  • Posts: 6627
  • Cookies: 542
  • Fascist dictator
    • View Profile
    • My blog
[Python] PictureGrabber
« on: July 30, 2011, 06:25:14 pm »
Well, in relation to xor's post (http://evilzone.org/projects-and-discussion/(get-paid)(x-post)-advanced-image-downloader/) I did the basic version of what the buyer wants. Because I can. It works, grabs images, but does not work with Google :(
Anyway... might be useful to someone :P

Code: http://newage.ql.lt/projects/python/picgrab.py

To use it, just run:
python picgrab.py --url=URL

Offline petermlm

  • Knight
  • **
  • Posts: 226
  • Cookies: 7
  • Information is Power
    • View Profile
    • Security Check
Re: [Python] PictureGrabber
« Reply #1 on: July 30, 2011, 06:37:15 pm »
Well, in relation to xor's post (http://evilzone.org/projects-and-discussion/(get-paid)(x-post)-advanced-image-downloader/) I did the basic version of what the buyer wants. Because I can. It works, grabs images, but does not work with Google :(
Anyway... might be useful to someone :P

Code: http://newage.ql.lt/projects/python/picgrab.py

To use it, just run:
python picgrab.py --url=URL

I tried it with evilzone and it worked fine. You know what would be cool to? To parse the home page so we could find every possible link to every last thread of the site, than run this script on all those pages. With luck after a few weeks you would have every image that is posted in evilzone. XD!

Offline Kulverstukas

  • Administrator
  • Zeus
  • *
  • Posts: 6627
  • Cookies: 542
  • Fascist dictator
    • View Profile
    • My blog
Re: [Python] PictureGrabber
« Reply #2 on: July 30, 2011, 06:45:56 pm »
Don't see a point in that and to do it you would need a crawler of some sort :P

Offline petermlm

  • Knight
  • **
  • Posts: 226
  • Cookies: 7
  • Information is Power
    • View Profile
    • Security Check
Re: [Python] PictureGrabber
« Reply #3 on: July 30, 2011, 06:54:48 pm »
Don't see a point in that and to do it you would need a crawler of some sort :P

Yes. I also never saw the point in that (Don't even know why I had this idea, XD).

But making a crawler may have a point. Some think to download a site, or part of the site. Or just search in it in case that site doesn't have a search engine of it's own.

A more practical application would be  some project to calculate various statistics on many different websites, like news sites, forums, social networks, etc.

But I don't know, just brainstorming, lol.

Offline Stackprotector

  • Administrator
  • Titan
  • *
  • Posts: 2515
  • Cookies: 205
    • View Profile
Re: [Python] PictureGrabber
« Reply #4 on: July 31, 2011, 12:46:49 pm »
Yes. I also never saw the point in that (Don't even know why I had this idea, XD).

But making a crawler may have a point. Some think to download a site, or part of the site. Or just search in it in case that site doesn't have a search engine of it's own.

A more practical application would be  some project to calculate various statistics on many different websites, like news sites, forums, social networks, etc.

But I don't know, just brainstorming, lol.
yhea can be cool ;).
Anyways, goodjob kulverstukas, will look into your code:)
~Factionwars

Offline petermlm

  • Knight
  • **
  • Posts: 226
  • Cookies: 7
  • Information is Power
    • View Profile
    • Security Check
Re: [Python] PictureGrabber
« Reply #5 on: July 31, 2011, 02:20:29 pm »
yhea can be cool ;) .
Anyways, goodjob kulverstukas, will look into your code:)

I'll do it!!

(I actually already started it, I may have something done still today, if not only Thursday, it will be impossible tomorrow.)