An open API service indexing awesome lists of open source software.

https://github.com/prem-ium/wired-coupon-scraper

🔓 Unlock the best deals through promo codes & discounts found through this automation script. 🛒
https://github.com/prem-ium/wired-coupon-scraper

coupon-code-generator coupon-service coupons deals discount-code-generator discounts doordash ebay money money-saving promo-code promo-codes promotions walmart wired

Last synced: about 1 year ago
JSON representation

🔓 Unlock the best deals through promo codes & discounts found through this automation script. 🛒

Awesome Lists containing this project

README

          

🛒 Wired Coupon Automation Tool 💸


Wired Coupon Automation Tool Banner

Selenium script to retrieve latest Wired Coupons & Promo Codes for various websites such as Walmart, DoorDash, EBay, & more.



Github Sponsor, https://github.com/sponsors/Prem-ium

---
## Demo

**Important Notice:** [Gold Sponsors](https://github.com/sponsors/Prem-ium) have access to special privileges, including exclusive features such as Discord Bot support for this project. If you are a `Gold` tier sponsor, you can access the private repository containing the Python script with Discord integration.

### Gold Sponsor Demo
This is a demo of the GitHub Gold Sponsor version of the project (not available in the public version).

Your browser does not support video tags.
Download the video here.

If the video doesn't work, preview the following image:

Image Preview

![Discord Bot Demo](https://github.com/Prem-ium/Wired-Coupon-Scraper/blob/main/Assets/DiscordBot.png?raw=true)

### Public Version Demo
This is a demo of the public version of the project.

Your browser does not support video tags.
Download the video here.

Console Output Preview

Output for running `python main.py amazon`

```python
---------------------------------------------------------------------------
Welcome to Wired Coupon Scraper.

RETAILERS argument received.
Gathering coupon codes for: ['amazon']
--------------------------------------------------
codes.txt file already exists
----------------------------------------------------------------------
Retrieving AMAZON Promo Code Offers...

108 AMAZON Promo Codes/Coupons were found!
--------------------------------------------------
Take 40% Off select products from Kwfrhix - Amazon Promo Code:
40MMS6OP
https://www.wired.com/coupons/get/94554598?popup=true

Appended Take 40% Off select products from Kwfrhix - Amazon Promo Code: - https://www.wired.com/coupons/get/94554598?popup=true
--------------------------------------------------
--------------------------------------------------
Enjoy 40% Off select JingLeXin products - Amazon Promo Code:
40YPKL1X
https://www.wired.com/coupons/get/94554602?popup=true

Appended Enjoy 40% Off select JingLeXin products - Amazon Promo Code: - 40YPKL1X - https://www.wired.com/coupons/get/94554602?popup=true
--------------------------------------------------
*---Rest of Promo Codes---*
```

---
## Environment Variables

The following environment variables can be configured to customize the behavior of the script. All variables are optional and have default values as shown below:

| Variable | Default | Description |
|--------------------|-----------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `RETAILERS` | `["walmart"]` | A JSON-formatted list of supported retailer coupon pages from Wired.com/coupons. Example: `["walmart", "amazon", "target"]`. |
| `APPRISE_ALERTS` | None | A comma-separated list of Apprise notification service URLs to which coupon alerts will be sent. Example: `discord://webhook_id/webhook_token,mailto://user:pass@smtp.example.com`. |
| `ALLOW_DUPLICATES` | `False` | If set to `True`, the script will allow sending duplicate coupons to Apprise alerts. Use this option if you want to be notified about the same coupon multiple times. |
| `KEEP_ALIVE` | `False` | If set to `True`, the script will run a Flask server to allow Keep-Alive functionality. This can be useful for deployments that need to keep the script running continuously. |

----
## Installation
1. Clone the repository:
```bash
git clone https://github.com/Prem-ium/Wired-Coupon-Scraper.git
cd Wired-Coupon-Scraper
```
2. Install the required packages:
```bash
pip install -r requirements.txt
```
3. Set up the environment variables.
4. Run the script:
- No Arguments:
``` bash
python main.py
```
- Pass RETAILERS as an argument. Seperate with a comma (```,```)
``` bash
python main.py amazon,doordash
```

--
## Experiencing Issues? 🛠️
As of 9/8/2024, I have disabled the `Issues` privilege for the general public. For direct support on any bugs or issues, please consider sponsoring me as a GitHub Sponsor under the `Silver` or `Gold` tier.
[![Sponsor](https://img.shields.io/badge/sponsor-30363D?style=for-the-badge&logo=GitHub-Sponsors&logoColor=#white)](https://github.com/sponsors/Prem-ium)

---
# Donations

If you appreciate my work and would like to show your support, there are two convenient ways to donate:

1. **GitHub Sponsors**
- [Donate via GitHub Sponsors](https://github.com/sponsors/Prem-ium)
- This is the preferred donation method as it incurs no transaction fees & different tiers offer perks.
[![GitHub Sponsor](https://img.shields.io/badge/sponsor-30363D?style=for-the-badge&logo=GitHub-Sponsors&logoColor=#EA4AAA)](https://github.com/sponsors/Prem-ium)

2. **Buy Me A Coffee**
- [Donate via Buy Me A Coffee](https://www.buymeacoffee.com/prem.ium)
- [![Buy Me A Coffee](https://img.shields.io/badge/Buy%20Me%20a%20Coffee-ffdd00?style=for-the-badge&logo=buy-me-a-coffee&logoColor=black)](https://www.buymeacoffee.com/prem.ium)

3. **Referral Links**
- If you're unable to make a monetary donation, you can still support my work by using my curated [Referral Links](https://github.com/Prem-ium/Referral-Link-Me/blob/main/README.md). Earn bonuses and rewards while contributing to my projects at the same time.
- [Explore Referral Links](https://github.com/Prem-ium/Referral-Link-Me/blob/main/README.md)

Your generous donations will go a long way in helping me cover the expenses associated with developing new features and promoting the project to a wider audience. I extend my heartfelt gratitude to all those who have already contributed. Thank you for your support!

---
## License
This project is licensed under the **GNU General Public License v3.0** (GPL-3.0). See the LICENSE file for details.