python - Scrapy - star_urls containing square brackets -



python - Scrapy - star_urls containing square brackets -

i'm trying crawl website , star_urls contain square brackets (?sec[3]=3)

when seek run spider happens brackets replaced %5b , %5d.

i tried utilize ulrlib.unquote(url) problem remains!

here code:

import urllib ul ... urls = [] sec in range(1, 20): url = "http://www.website.com/something?sec[%d]=%d" % (sec,sec) url = ul.unquote(url) urls.append(url) start_urls = urls

can help me?

python url scrapy brackets

Comments

Popular posts from this blog

php - Android app custom user registration and login with cookie using facebook sdk -

django - Access session in user model .save() -

php - .htaccess Multiple Rewrite Rules / Prioritizing -