Apple Store Stock Notifier monitors the availability of selected Apple devices in selected Apple stores, and sends you a notification when devices are available!

Overview

Apple Store Stock Notifier

This software will immediately send you a notification via Telegram when one of your coveted Apple Devices is available in the selected Apple Stores! In addition, it offers various tools (such as graphs) to analyze the availability of the selected devices from the comfort of your smartphone / tablet / teapot / desktop etc. (whatever Telegram runs on). It is intended to run on an always-on device (such as a Raspberry Pi), and requires an internet connection and a Telegram account.

This software is built on a modified version of Apple-Store-Reserve-Monitor by insanoid.

Installation

How to install

  1. Clone this repository and cd to it.
  2. Execute pip install -r requirements.txt.
  3. Adapt the config.json file to your needs (see under "use").
  4. Create a Telegram bot to inform you and enter the required details in parameters.py.
  5. Run the monitor with python monitor.py.
  6. (optional) Send /setcommands to the Telegram Botfather chat, select the bot and send the output under "Commands available:" to make the commands easily accessible from the chat.

Running the pip numpy on the Raspberry Pi can be cumbersome. If you get errors pertaining to "Importing the numpy C-extensions failed", try running sudo apt-get install python-dev libatlas-base-dev.

Use

It's as simple as entering the device and Apple Store you want in config.json and running python module.py. The model in config.json is the model part number, that can be looked up here. The store in config.json is the store ID, a list of which can be looked up here, defaults to all stores in the zip-code region. config.json is part of the interface of Apple Store Reserve Monitor, more information on how to use this here.

You can change the parameters regarding intervals, paths, use of proxies etc. from the defaults in parameters.py.

It is recommended to run this on a computer that is always on and always has an active internet connection (think of the environment when doing this!). Raspberry Pi and similar computing boards are often good choices. You may want to set up a job to start this automatically using crontab or bashrc if you are running this on a Raspberry Pi, so it can run autonomously.

Please use this software responsibly! Do not set a low polling interval, both for your own benefit (you will be blocked) as for the other users of Apple's service. In general, the defaults set are fine for being notified in time. The intended use is for people to be able to get an Apple device that is often out of stock for their own use. Do not use this software for scalping, price gouging or any other use that is unethical.

Proxies

Randomized proxies help you make requests for a prolonged period of time without your IP-address being blocked by Apple's server. For this http-request-randomizer by pgaref (licensed under MIT license) is used. If randomized proxies are enabled in parameters.py, a list of free proxies will be generated. When a request is made, a random proxy is selected from this list. If the proxy does not return a response within the timeout window, the proxy is removed from the list. Because free proxies are often slow and unreliable, for each request, it will fallback to a non-proxied request after attempting a proxy unsuccesfully. However, because unresponsive proxies are removed from the list, in most cases this random proxy system becomes reliable after a while. Keep in mind that free proxies only remain active for a very short time (days or even hours), so if this program is ran for a long time, the list will become empty, at which point it reloads the proxy list. Using the randomized proxies is significantly slower than direct requests, but prevent your IP address from being blocked.

Licensing

This software builts on other open source software. As such, it is MIT licensed.

You might also like...
Typhon is a macOS specific payload aimed at targetting Jamf managed devices.
Typhon is a macOS specific payload aimed at targetting Jamf managed devices.

Typhon is a macOS specific payload aimed at targetting Jamf managed devices. This payload can be used to manipulate macOS devices into communicating with a Mythic instance, which acts as a Jamf server with the ability to execute commands.

Home Assistant integration for MyEnergi devices
Home Assistant integration for MyEnergi devices

myenergi for Home Assistant myenergi custom component for Home Assistant This is a very early release, will add more documentations soon! This compone

Mini SCADA. Poll modbus devices by TCP/IP network.

Plans Add saving and loading devices and channels with files or db or someone else. Multitasking system for poll all devices Automatic optimization po

An API for controlling Wi-Fi connections on Balena devices.

Description An API for controlling Wi-Fi connections on Balena devices. It does not contain an interface, instead it provides API endpoints to send re

Python module to interface with Tuya WiFi smart devices

TinyTuya Python module to interface with Tuya WiFi smart devices Description This python module controls and monitors Tuya compatible WiFi Smart Devic

This application aims to read all wifi passwords and visualizes the  complexity in graph formation by taking into account several criteria and help you generate new random passwords.
This application aims to read all wifi passwords and visualizes the complexity in graph formation by taking into account several criteria and help you generate new random passwords.

This application aims to read all wifi passwords and visualizes the complexity in graph formation by taking into account several criteria and help you generate new random passwords.

IPE is a simple tool for analyzing IP addresses. With IPE you can find out the server region, city, country, longitude and latitude and much more in seconds.

IPE is a simple tool for analyzing IP addresses. With IPE you can find out the server region, city, country, longitude and latitude and much more in seconds.

ProtOSINT is a Python script that helps you investigate Protonmail accounts and ProtonVPN IP addresses
ProtOSINT is a Python script that helps you investigate Protonmail accounts and ProtonVPN IP addresses

ProtOSINT ProtOSINT is a Python script that helps you investigate ProtonMail accounts and ProtonVPN IP addresses. Description This tool can help you i

Python Scrcpy Client - allows you to view and control android device in realtime
Python Scrcpy Client - allows you to view and control android device in realtime

Python Scrcpy Client This package allows you to view and control android device in realtime. Note: This gif is compressed and experience lower quality

Comments
  • Error running store_checker

    Error running store_checker

    I get:

    line 373 in store_checker = StoreChecker() TypeError: StoreChecker.Init() missing 1 required positional argument: 'username'

    I installed all dependencies. This is when i run the store_checker script, and all the config parameters are programmed.

    This is all from ubuntu 22.04.1 LTS (Desktop)

    opened by Fiberopt1986 2
  • Error running script

    Error running script

    Just creating new ticket and referencing the old ticket, as I commented after it was closed, but not sure if it will be seen>

    Let me back up. I did run the monitor.py file, and i had some errors initially there, and that is why i was trying to invoke the store checker to skip the telegram piece, as i thought it was a telegram issue. Now that I know that you cannot do that, here is the issue i have when running the monitor.py file:

    I get the following errors:

    New monitoring session! IP address: 192.168.190.129 Traceback (most recent call last): File "/home/username/Apple Notifier Scripts/Apple-Store-Stock-Notifier/monitor.py", line 350, in monitor = Monitor() File "/home/username/Apple Notifier Scripts/Apple-Store-Stock-Notifier/monitor.py", line 170, in init client.loop.run_until_complete(self.start_monitoring(client)) File "/usr/lib/python3.10/asyncio/base_events.py", line 646, in run_until_complete return future.result() File "/home/username/Apple Notifier Scripts/Apple-Store-Stock-Notifier/monitor.py", line 180, in start_monitoring await send(client, message) File "/home/username/Apple Notifier Scripts/Apple-Store-Stock-Notifier/utils.py", line 20, in send await client.send_message(username, message) File "/home/username/.local/lib/python3.10/site-packages/telethon/client/messages.py", line 853, in send_message result = await self(request) File "/home/username/.local/lib/python3.10/site-packages/telethon/client/users.py", line 30, in call return await self._call(self._sender, request, ordered=ordered) File "/home/username/.local/lib/python3.10/site-packages/telethon/client/users.py", line 79, in _call result = await future telethon.errors.rpcerrorlist.UserIsBotError: Bots can't send messages to other bots (caused by SendMessageRequest)

    That last error. I am definitely not sending from a bot to another bot. My username is my regular telegram username (tried with @ and without @), and the API_ID / hash was generated under the api section of my account. The bot_token was the token that was provided when creating the bot.

    I also tried removing the *.session files with no luck.

    Lastly, I also tried creating a completely different account with different phone number for the bot, so that i can validate 100% that the bot and my user was under a different account, and i got the same error.

    Originally posted by @Fiberopt1986 in https://github.com/fjwillemsen/Apple-Store-Stock-Notifier/issues/3#issuecomment-1293504069

    opened by Fiberopt1986 0
  • Getting : rpcerrorlist.ApiIdInvalidError:

    Getting : rpcerrorlist.ApiIdInvalidError:

    
     File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/asyncio/base_events.py", line 646, in run_until_complete
        return future.result()
      File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/telethon/client/auth.py", line 182, in _start
        await self.sign_in(bot_token=bot_token)
      File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/telethon/client/auth.py", line 368, in sign_in
        result = await self(request)
      File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/telethon/client/users.py", line 30, in __call__
        return await self._call(self._sender, request, ordered=ordered)
      File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/telethon/client/users.py", line 79, in _call
        result = await future
    telethon.errors.rpcerrorlist.ApiIdInvalidError: The api_id/api_hash combination is invalid (caused by ImportBotAuthorizationRequest)
    
    

    Getting above error Will this work for iPHONE 14. ?

    opened by advaidg 0
Releases(v0.1.0)
Owner
Floris-Jan Willemsen
Hi! My name is Floris-Jan and I'm a Computer Science student from Holland. I've always been fascinated by computers and have a passion for programming.
Floris-Jan Willemsen
jarbou3 is rat tool coded in python with C&C which can accept multiple connections from clients

jarbou3 Jarbou3 is rat tool with coded in python with C&C which can accept multi

youhacker55 108 Dec 29, 2022
Asyncer, async and await, focused on developer experience

Asyncer, async and await, focused on developer experience. Documentation: https:

Sebastián Ramírez 895 Dec 28, 2022
A website to list Shadowsocks proxies and check them periodically

Shadowmere An automatically tested list of Shadowsocks proxies. Motivation Collecting proxies around the internet is fun, but what if they stop workin

Jorge Alberto Díaz Orozco (Akiel) 29 Dec 21, 2022
An automatic reaction network generator for reactive molecular dynamics simulation.

ReacNetGenerator An automatic reaction network generator for reactive molecular dynamics simulation. ReacNetGenerator: an automatic reaction network g

Tong Zhu Research Group 35 Dec 14, 2022
Test - Python project for Collection Server and API Server

QProjectPython Collection Server 와 API Server 를 위한 Python 프로젝트 입니다. [FastAPI참고]

1 Jan 03, 2022
KoreaVPN - Create a VPN App for Mac Using Automator

VPN app 만들기 (a.k.a. KoreaVPN) VPN을 사용하기 위해 들어가는 10초의 시간을 아끼고, 귀찮음을 최소화 하기 위해 크롤링

DongHee 6 Jan 17, 2022
Tiny Interactive File Transfer Application

TIFTA: Tiny Interactive File Transfer Application This repository holds all the source code, tests and documentation of the TIFTA software. The main g

Jorge Martínez 2 Dec 08, 2021
Search ports in multiples hosts

Search Port ✨ Multiples Searchs ✨ Create list hosts Create list targets Start Require Python 3.10.0+. python main.py Struture Function Directory load_

Tux#3634 7 Apr 29, 2022
Azure-function-proxy - Basic proxy as an azure function serverless app

azure function proxy (for phishing) here are config files for using *[.]azureweb

17 Nov 09, 2022
Converts Cisco formatted MAC Addresses to PC formatted MAC Addresses

Cisco-MAC-to-PC-MAC Converts a file with a list of Cisco formatted MAC Addresses to PC formatted MAC Addresses... Ex: abcd.efgh.ijkl to AB:CD:EF:GH:I

Stew Alexander 0 Jan 04, 2022
A Python framework for interacting with Solana's Pyth network.

Pyth Network A basic Python framework for reading and decoding data regarding the Pyth network

1 Nov 29, 2021
This repository contain sample code of gRPC Communication between Python and GoLang

This repository contain sample code of gRPC Communication between Python and GoLang, the Server is running on GoLang while Python is running the client

Abdullahi Muhammad 2 Nov 29, 2021
ip2domain - get ip to domain, Know the domian corresponding to the local network connection IP

What is Sometimes, we need to know what connections our local machine has, and what are their IP, domain name, program and parameters? get ip to domai

51pwn 4 Sep 30, 2022
9SPY: a Windows RAT built in Python using sockets

9SPY 👁‍🗨 9SPY is a Windows RAT built in Python using sockets Features Features will be listed here soon, there are currenly 14 Information This is a

doop 12 Dec 01, 2022
Dark Utilities - Cloudflare Uam Bypass

Dark Utilities - Cloudflare Uam Bypass

Inplex-sys 26 Dec 14, 2022
Ip-Tracker: a script written in python for tracking Someone using targets ip-Tracker address

🔰 𝕀𝕡-𝕋𝕣𝕒𝕔𝕜𝕖𝕣 🔰 Ip-Tracker is a script written in python for tracking Someone using targets ip-Tracker address It was made by Spider Anongre

Spider Anongreyhat 15 Dec 02, 2022
Python tutorial for implementing Oxylabs' Residential Proxies with AIOHTTP

Integrating Oxylabs' Residential Proxies with AIOHTTP Requirements for the Integration For the integration to work you'll need to install aiohttp libr

Oxylabs.io 6 Sep 14, 2022
Real-time text-editor using python tcp socket

Real-time text-editor using python tcp socket This project does not need any external libraries so you don't need to use virtual environments. All you

MatiYo 3 Aug 05, 2022
NSX-T infrastructure as code - SDDC deployment

Deploy NSX-T Infrastructure - Simple Topology by Nicolas MICHEL @vpackets / LinkedIn Introduction The purpose of this entire repository is to automate

21 Nov 28, 2022
A light-weight open-source project CLI utility for showing services running on ports in a host

Portable Port Scanner (ppscanner) Portable Port Scanner (ppscanner) is a light-weight open-source CLI utility that leverages on nmap to make quick and

1 Oct 30, 2021