Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.
Update

I liked that script so much I enhanced it. This version allows you to check multiple models and zipcodes, and is set up to check periodically and email you with any changes. Instructions are in the file. Cheers! Here's hoping I can snag one before the scalpers.

OK, I made some updates per suggestions. Internal documentation is now more specific. I should note you can probably use non-gmail sendmail servers, but I didn't feel like fiddling with that part too much. Also, I wrapped the tracking routine with exception handling to deal with cases when the server doesn't respond. When you start tracking you will get an initial email so you can make sure it is working.

The major change is that the program now accepts command line arguments. Now, if you type "python TrackIpadStock.py" you will get an immediate printout of availability. If you type "python TrackIpadStock.py -t" you start the tracking routine. You can add "-c" to always send the mail if currently available. Add "-i30" to set the wait interval for 30 minutes. Add "-a somebody@somewhere.com" to change who the email is sent to.
So to recap:

Print: python TrackIpadStock.py
MailTracking: python TrackIpadStock.py -t
FullOptions: python TrackIpadStock.py -t -i30 -c -a somebody@somewhere.com

Please use common sense. There is no need to set the interval to every minute.

Edit: Fixed an issue that reported old results if you changed the model list
Edit: This script will not work with Python 3
Edit: Fixed a bug with the history as of u4
Edit: Tweaked for better error handling in u5, and made the email html. Now if you click on the availability it takes you to the website for that store and model.
Edit: Fixed a bug with the history as of u6
Edit: Fixed a bug with error reporting as of u7
Edit: Fixed a bug with error reporting as of u8
Edit: Added overall error handling as of u9
 

Attachments

  • TargetIpadStock_u9.zip
    4.3 KB · Views: 250
Last edited:
jmgore75, I'm trying your version - I have
models = ["WIFI 16GB White", "WIFI 16GB Black"]
but it's emailing me availability of 32GB models.

I'm just using python TargetIpadStock.py -t -i60
 
jmgore75, I'm trying your version - I have but it's emailing me availability of 32GB models.

I'm just using python TargetIpadStock.py -t -i60

OK, I fixed that. Download the new version. Also, deleteting the availability file will also make that go away with the current version, until you change models.
 
Anyone else getting a SyntaxError: invalid syntax on line 233? print availStores

thanks.

Note: This script will not work with Python version 3, which introduced a number of syntax changes (including the print statement). You will need python 2.x. Sorry, I should have noted it, but 3 is still uncommon.
 
While I use my MBP to it's limits, and the web for all it's worth, when it comes to dealing with big box stores there's no substitute for showing up in person. This week I netted a windfall purchase of precisely seven new iPad 2's.

All because I timed my arrival and others did not.

Cheers :)
 
While I use my MBP to it's limits, and the web for all it's worth, when it comes to dealing with big box stores there's no substitute for showing up in person. This week I netted a windfall purchase of precisely seven new iPad 2's.

All because I timed my arrival and others did not.

Cheers :)

Trolling again I see. :rolleyes:
 
While I use my MBP to it's limits, and the web for all it's worth, when it comes to dealing with big box stores there's no substitute for showing up in person. This week I netted a windfall purchase of precisely seven new iPad 2's.

All because I timed my arrival and others did not.

Cheers :)

Don't you have a life?
 
im getiing
checking: failed

Sorry, I've been trying to maintain my current version and the one I send out separately. Try version u4.

Beyond that, sometimes the connection just doesn't happen. If it keeps failing, run without -t so I can check the error.
 
While I use my MBP to it's limits, and the web for all it's worth, when it comes to dealing with big box stores there's no substitute for showing up in person. This week I netted a windfall purchase of precisely seven new iPad 2's.

All because I timed my arrival and others did not.

Cheers :)

I thought it was 9, or was it 11 after those two that you saw when you just happen to be at Best Buy shopping. Your either full of it, or not smart enough to know that you've been buying Ipad 1 not Ipad 2.
 
Oh my the fanboys are grumpy today.

Like it or not it's a grand total of ..... Oh nevermind numbers confuse you



Cheers & Happy Hunting Mates :)
 
Sorry, I've been trying to maintain my current version and the one I send out separately. Try version u4.

Beyond that, sometimes the connection just doesn't happen. If it keeps failing, run without -t so I can check the error.

worked now
 
Dropped by target in buffalo ny this am for some razors. Thought i'd check out if there are any new ipad 2 accessories and lo and behold a lone white ipad 2 wifi 64gb sitting in the cabinet. Made the purchase. Dude said it must have been a return because they received none the whole week. Still factory sealed of course.
 
No stock locally here in my east coast area today, although I missed the 9am check and didn't check until after 10, so might have missed a couple pieces if they sold already.
 
OK, I made some updates per suggestions. Internal documentation is now more specific. I should note you can probably use non-gmail sendmail servers, but I didn't feel like fiddling with that part too much. Also, I wrapped the tracking routine with exception handling to deal with cases when the server doesn't respond. When you start tracking you will get an initial email so you can make sure it is working.

The major change is that the program now accepts command line arguments. Now, if you type "python TrackIpadStock.py" you will get an immediate printout of availability. If you type "python TrackIpadStock.py -t" you start the tracking routine. You can add "-c" to always send the mail if currently available. Add "-i30" to set the wait interval for 30 minutes. Add "-a somebody@somewhere.com" to change who the email is sent to.
So to recap:

Print: python TrackIpadStock.py
MailTracking: python TrackIpadStock.py -t
FullOptions: python TrackIpadStock.py -t -i30 -c -a somebody@somewhere.com

Please use common sense. There is no need to set the interval to every minute.

Edit: Fixed an issue that reported old results if you changed the model list
Edit: This script will not work with Python 3
Edit: Fixed a bug with the history as of u4

thanks, is it supposed to only email if it has stock cause as of now its checking and sending info to the txt file and i only got 1 email
 
Target's stock checker is giving a lot of false positives in the bay area. Two stores I've gone to have clearly had nothing despite showing availability for a couple of days. Wasted a lot of time on this.

EDIT: Also will add the in-store DPCI checker did not show in stock what was showing as in stock on the website checker.
 
Last edited:
Quick tip for everyone. If your target shows in stock, and you want to see if it's accurate, don't call either the store operator or the electronics department. Call a different department and ask them to look up the DPCI.

I called a Target that was showing in stock last night. Girl in electronics told me they haven't had any since launch (which I knew wasn't true). Store operator told me the DPCI didn't exist (which obviously it does). Store manager told me she absolutely would not even look up the number for me. But girl in the photo department....well she happened to find it right away. Didn't end up making it in time, but there was definitely some shady stuff happening.
 
OK, I fixed that. Download the new version. Also, deleteting the availability file will also make that go away with the current version, until you change models.

Thanks for the script! Yes, I'll use it sparingly.
It saves me several several manual clicks!
 

Just went to a target in south Orlando, FL that listed the black 32gb wifi model as "limited availability." I asked the guy to look up the DCPI and when he did, the machine said they didn't even stock ANY product with that number. He then scanned the bar codes on the display shelf and it said they were all out. What gives?
 
thanks, is it supposed to only email if it has stock cause as of now its checking and sending info to the txt file and i only got 1 email

It will only email you if something has changed about the status for a model at a particular location since the last time it ran. If you run with the -c flag it will always email you whenever it finds a model available. Also it will email you when the tracker first starts running, just so you can see that the email works.
 
It will only email you if something has changed about the status for a model at a particular location since the last time it ran. If you run with the -c flag it will always email you whenever it finds a model available. Also it will email you when the tracker first starts running, just so you can see that the email works.

Thanks
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.