But, there aren't enough signatures yet. So I tried advertising to my FB friends. I have to get to 150 before the petition is visible on the list of open petitions on the website.
That got me thinking: how do I find all the other petitions that aren't available for viewing yet due to being not-advertised enough?
They provide a short-URL for these petitions. This shortener probably is incremental. Mine is http://wh.gov/lInfx PLEASE SIGN IT and I figure the other petitions might have urls near it.
So, here's my program to find them:
#!/usr/bin/python
#http://wh.gov/lInfx
#http://wh.gov/lInfx
nums1 = [x for x in range(65, 90)]
nums2 = [x for x in range(97, 122)]
nums = []
nums.extend(nums1)
nums.extend(nums2)
print nums
with open("/tmp/urls.wh", "w") as OFH:
for i in nums:
for j in nums:
for k in nums:
for m in nums:
OFH.write("http://wh.gov/l%c%c%c%c\n" % (i, j, k, m))
# wget -a out.log -t 1 --read-timeout=3 --max-redirect 1 --save-headers
No luck yet, it takes a long time to run.
https://petitions.whitehouse.gov/petition/holidays-muslim/6T6csRph
https://petitions.whitehouse.gov/petition//95WplFSK
https://petitions.whitehouse.gov/petition/muslim-should-have-holiday-their-holiday/dH8ZTMSf https://petitions.whitehouse.gov/petition/please-protect-peace-monument-nassau-county-new-york-eisenhower-park/hkXX3082