taganaka / polipus

Polipus: distributed and scalable web-crawler framework
MIT License
92 stars 32 forks source link

Add #add_to_queue #24

Closed tmaier closed 10 years ago

tmaier commented 10 years ago

Depends on #22 and #23

This is my proposal for #add_to_queue, see #15

coveralls commented 10 years ago

Coverage Status

Coverage decreased (-0.22%) when pulling c39c78809714e5d7e00fb24da3cdd4b299903615 on tmaier:add_to_queue into 428ed675fa11e7375cd0e8bbfbf86fb1033c7e8e on taganaka:master.

tmaier commented 10 years ago

Yes, in the beginning I thought about checking for the class Page, but then I reminded myself about duck typing. In the end it does not matter if the object is really a Page class. As long as it has this three methods we can use it.

But I can also replace it with a check for the class Page