Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/WTFox/iphone-checker
Check Apple Stores near <zipcode> for iPhone X's!
https://github.com/WTFox/iphone-checker
apple click iphonex python requests
Last synced: about 2 months ago
JSON representation
Check Apple Stores near <zipcode> for iPhone X's!
- Host: GitHub
- URL: https://github.com/WTFox/iphone-checker
- Owner: WTFox
- License: mit
- Created: 2017-11-14T14:57:36.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2019-10-23T00:45:27.000Z (over 5 years ago)
- Last Synced: 2024-11-14T01:48:45.902Z (2 months ago)
- Topics: apple, click, iphonex, python, requests
- Language: Python
- Homepage: http://anthonyfox.io/iphone
- Size: 14.6 KB
- Stars: 11
- Watchers: 3
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Changelog: ChangeLog
- License: LICENSE.md
Awesome Lists containing this project
README
# iPhone X Stock Checker
This installs a CLI `checkx` that will check nearby apple stores for locations that have the iPhoneX instock.
![Imgur](https://media.giphy.com/media/xT0xeowpLSrJpBah8I/giphy.gif)
## Installation
``` bash
$ pip install iphone-checker
```or Just download or clone this project, `cd` into the dir then run
``` bash
$ python setup.py install
```or
``` bash
$ pip install .
```## Usage
### Module Usage
```python
In [1]: from iphone_checker import check_availabilityIn [2]: check_availability('tmobile', '92620')
Out[2]: [] # Too accurate
```### CLI usage
```
$ checkx -z 92620
No stores near 92620 have stock. :($ checkx --help
Usage: checkx [OPTIONS]Options:
-c, --carrier TEXT Which carrier do you need?
-z, --zipcode TEXT What zipcode to search in?
--help Show this message and exit.
```## Contributing
1. Fork it!
2. Create your feature branch: `git checkout -b my-new-feature`
3. Commit your changes: `git commit -am 'Add some feature'`
4. Push to the branch: `git push origin my-new-feature`
5. Submit a pull request :D## License
MIT: [http://rem.mit-license.org](http://rem.mit-license.org)