Giter Club home page Giter Club logo

debbit's People

Contributors

bjhiltbrand avatar cookie223 avatar cy11100 avatar dependabot[bot] avatar devt avatar jakehilborn avatar jeffsyang avatar kevin-david avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

debbit's Issues

burst transaction with the duplicate 'random' amount causes error with xfinity

I ran into an error with Xfinity payment. Xfinity doesn't let the same 'amount' to be paid again in a single session. assuming that its duplicate payment. For ex, their system wont let us pay 11 cents again and again if its happening too soon (<24 hours)

I think this is the reason for the debbit erroring out in my case.

I've attached the required files to show the error.

Btw, your utility has been really helpful in keeping up with the card requirements. Thank you so much for your good work
failures.zip

Thanks,
Prasad

Debbit not recognizing numbers with leading zeros.

Ran into an issue where Debbit was not able to make purchases on Xfinity with my credit card in which the last four digits start with a zero. Debbit was able to make purchases with my other cards without zeros in their last four digits. If I pay manually, the purchase would go through. Debbit seems to not be able to recognize a number that starts with zero.

Test run

not really issue - just wondering if there is a way to test the script a few times. as a new user would like to see it go and make sure its working in my environment

`min_day` doesn't seem to be respected with multi-card setup in burst mode

I have 3 cards configured like this:

mode: burst
hide_web_browser: true
notify_failure:  <snip>

deba:
  amazon_gift_card_reload:
    enabled: True
    dry_run: False
    total_purchases: 10
    amount_min: 50
    amount_max: 50
    usr:  <snip>
    psw:  <snip>
    close_browser: no
    card:  <snip>
    burst_count: 3
    timing:
      min_day: 2
      max_day: 14
      burst:
        min_gap: 79200
        time_variance: 14400
      spread:
        min_gap: 7200
        time_variance: 1440

debb:
  amazon_gift_card_reload:
    enabled: True
    dry_run: False
    total_purchases: 10
    close_browser: no
    amount_min: 50
    amount_max: 50
    usr:  <snip>
    psw:  <snip>
    card:  <snip>
    burst_count: 3
    timing:
      min_day: 2
      max_day: 14
      burst:
        count: 1
        min_gap: 79200
        time_variance: 14400
      spread:
        min_gap: 7200
        time_variance: 1440

bc:
  amazon_gift_card_reload:
    enabled: True
    dry_run: False
    total_purchases: 1
    amount_min: 99
    amount_max: 99
    usr:  <snip>
    psw:  <snip>
    card: <snip>
    close_browser: no
    burst_count: 1
    timing:
      min_day: 9
      max_day: 27
      burst:
        count: 1
        min_gap: 79200
        time_variance: 14400
      spread:
        min_gap: 7200
        time_variance: 1440

Just ran burst mode and it made the purchase for 0.99 a few days early. Also had this fun error!

Exception in thread Thread-3:
Traceback (most recent call last):
  File "/usr/local/opt/python/Frameworks/Python.framework/Versions/3.7/lib/python3.7/threading.py", line 926, in _bootstrap_inner
    self.run()
  File "/usr/local/opt/python/Frameworks/Python.framework/Versions/3.7/lib/python3.7/threading.py", line 870, in run
    self._target(*self._args, **self._kwargs)
  File "debbit.py", line 127, in burst_loop
    burst_gap = get_burst_min_gap(merchant, cur_purchase_count, now) + random.randint(0, int(merchant.burst_time_variance))
  File "debbit.py", line 148, in get_burst_min_gap
    dynamic_burst_min_gap = int(remaining_secs_in_month / 4 / remaining_purchase_count * merchant.burst_count)
ZeroDivisionError: float division by zero

I think it was working fine in spread mode, but I was having problems with running from source on Windows and Mac gave me a better error message (#21) so I was trying that out :)

Preferred approach for implementing multi-card per merchant support?

Nice script! I'm considering implementing multi-card support - as in, I want to make 20 purchases on Amazon over two cards, 10 purchases on each.

Obviously I could accomplish this with multiple "instances" of the application, but it seemed nice to be able for each merchant to "rotate" through cards.

The approach I was going to take would be to make card a multi-value option rather than a single-value one, then round-robin through cards in the order they're supplied to reach total_purchases - does this seem reasonable?

I can think of more complicated approaches involving randomly switching between cards, # of purchases per card, etc. - but this seemed the simplest. Any thoughts?

[FR] Docker container?

Great work on this tool. Thank you!

Any chance of a docker container (DockerHub) to spin this up on a server with ease for all the /r/selfhosted folks out there?

Support scheduling purchases every x number of months

The way debbit is currently designed, cards added will always have at least one purchase done a month. Is it possible to have an option to have purchases occur ever x number of months? e.g. every 3 months or 6 months

The reason I request this is that I have a fairly large number of credit cards I want to keep active but having all of them have a monthly purchase is too much, especially when most of them don't have a small balance fee waiver. At most I would like to have one purchase every three months or even every six months on the cards.

Amazon gift card reload fails with unable to locate element error

When I ran the code earlier, the script failed with the error:

v2.0.3-dev Windows Traceback (most recent call last):
  File "debbit.py", line 294, in web_automation_wrapper
    result = merchant.web_automation(driver, merchant, amount)
  File "xxx\debbit\src\program_files\merchants\amazon_gift_card_reload.py", line 152, in web_automation
    driver.find_element_by_xpath("//button[starts-with(text(),'Reload') and contains(text(),'" + utils.cents_to_str(amount) + "')]").click()
  File "xxx\src-hO995slM\lib\site-packages\selenium\webdriver\remote\webdriver.py", line 394, in find_element_by_xpath
    return self.find_element(by=By.XPATH, value=xpath)
  File "xxx\src-hO995slM\lib\site-packages\selenium\webdriver\remote\webdriver.py", line 976, in find_element
    return self.execute(Command.FIND_ELEMENT, {
  File "xxx\src-hO995slM\lib\site-packages\selenium\webdriver\remote\webdriver.py", line 321, in execute
    self.error_handler.check_response(response)
  File "xxx\src-hO995slM\lib\site-packages\selenium\webdriver\remote\errorhandler.py", line 242, in check_response
    raise exception_class(message, screen, stacktrace)
selenium.common.exceptions.NoSuchElementException: Message: Unable to locate element: //button[starts-with(text(),'Reload') and contains(text(),'0.58')]

There may have been some Amazon code change which only updated the final button after the amount field loses focus. The issue was fixed by adding 2 lines to the code before for element in driver.find_elements_by_xpath("//span[contains(text(),'ending in " + merchant.card[-4:] + "')]")::

    driver.find_element_by_id('asv-manual-reload-amount').send_keys(Keys.ENTER)
    time.sleep(1 + random.random() * 2)

Failures

Hi, thank you for sharing this tool! Uploading my failures to help improve the tool.

failures.zip

cannot use debbit until a specific date

INFO: 2020-12-01 07:31:23,029 Bursting next 1 frontwave_credit_card_amazon_gift_card_reload purchase after 2020-12-02 12:00AM
INFO: 2020-12-01 07:31:23,033 Bursting next 1 Navy_Fed_credit_card_amazon_gift_card_reload purchase after 2020-12-02 12:00AM

I set up a reminder to run it 1st of everyone, it seems i need to change the time everytime to run i t again, how can i change the purchase after date? Thank you

Anti-bot measures

I'm writing merchant support for https://www.givedirectly.org/. It uses a Stripe field for credit card info. I've tried clicking the final submit button a few different ways - webdriver click, ActionChains with mouse movement, and even injecting jquery and clicking with that. Each of these gives an error (Website Error: Create Intent Request aborted), but manually clicking or using jquery in the window opened by debbit succeeds, so I don't think it's the same as #57. Recaptcha is enabled on the site, but no challenges are sent. Was anything similar bypassed for other sites?

add support for the cards not having to be added beforehand

You have to go through the trouble of adding each card to your profile before this script will work. This works for the use case where the card is static and you are just making a bunch of small purchases on the same card.

My use case is that I have a list of small balance gift cards that I want to drain into my Amazon account as they are not worth keeping track of. It would be nice to add support for actually adding the card during checkout. I think you have everything you need except for you would have to add "Name on card" and "Expiration date" to config.txt.

Unable to complete Captcha steps when hide_web_browser=yes

When hide_web_browser: yes is selected and Amazon requires a Captcha, it is impossible to authenticate the login. To fix this, I had to set hide_web_browser: no instead before changing back. This occurred when I was setting Debbit up on a new Windows computer where Amazon didn't recognize the new browser. If this occurs during hide_web_browser: yes, I think Debbit should change that setting to no temporarily until authentication is complete so that it is possible to open the tab where Debbit is executing.

Amazon reload not working

I believe amazon might have changed the order of screens/removed some hoops for reloading a giftcard balance. As a result there is no longer a 'Continue' button and directly goes to 'Place your Order' screen.

Debbit errors out as below:
v2.1.2 Windows Traceback (most recent call last):
File "debbit.py", line 294, in web_automation_wrapper
File "C:\Users\Shekhar Alampally\Downloads\debbit-v2.1.2-win64\program_files\merchants\amazon_gift_card_reload.py", line 160, in web_automation
driver.find_element_by_xpath("//span[contains(text(),'Continue')]").find_element_by_xpath('../..').click()
File "selenium\webdriver\remote\webdriver.py", line 394, in find_element_by_xpath
File "selenium\webdriver\remote\webdriver.py", line 976, in find_element
File "selenium\webdriver\remote\webdriver.py", line 321, in execute
File "selenium\webdriver\remote\errorhandler.py", line 242, in check_response
selenium.common.exceptions.NoSuchElementException: Message: Unable to locate element: //span[contains(text(),'Continue')]

Error Message: Unable to locate element

I'm receiving the following error when trying to run Debbit.

ERROR: 2021-09-18 18:08:52,947 debit_card_amazon_gift_card_reload error: Traceback (most recent call last):
  File "debbit.py", line 294, in web_automation_wrapper
  File "C:\Debbit\program_files\merchants\amazon_gift_card_reload.py", line 160, in web_automation
    driver.find_element_by_xpath("//span[contains(text(),'Continue')]").find_element_by_xpath('../..').click()
  File "selenium\webdriver\remote\webdriver.py", line 394, in find_element_by_xpath
  File "selenium\webdriver\remote\webdriver.py", line 976, in find_element
  File "selenium\webdriver\remote\webdriver.py", line 321, in execute
  File "selenium\webdriver\remote\errorhandler.py", line 242, in check_response
selenium.common.exceptions.NoSuchElementException: Message: Unable to locate element: //span[contains(text(),'Continue')]

Xfinity bot detection

It seems that Xfinity now refuses log-in via error message of incorrect login/password, if firefox is on remote control

Can you add support to go directly to payments page without trying to log in again, if the user is currently already logged in?

2FA/OTP issues

OTP failure.zip

Installing Selenium was terribly difficult as well due to pip issues related to python2.7, but I don't think that's necessarily related.

I've tried running from source with master and it doesn't appear to change either. Really hope I don't have anti-automation issues now after testing.

Make it work with atmosenergy.com

Hi
I find it useful for what you have done for amazon.
I want to do same for atmos energy and spectrum cable as well.
Appreciate your help on this.
Thanks

Xfinity Login Error

Having issues with xfinity login failing. Output is below. Is anyone else seeing this?

Debbit made unwanted AT&T payment

I have Debbit set up to schedule 1 payment of $1.00 every month for AT&T bill pay. Yesterday, Debbit processed a $1 payment, but produced an error saying it was unable to verify the payment was successful. Today, it did it again! It made a second undesired payment, also for $1.00, and produced the same error. Please explain how this is possible. I think I am going to have to quit using Debbit in the meantime, because extra payments like this are not acceptable. I'm trying to contact AT&T to see if I can somehow undo it, but I doubt that's going to be possible :(

Program not running on its own (without manually running it) and not working at all for Amazon gift card reloads.

I configured this program last month according to your examples and tutorial. I set it to run two different cards for Amazon gift card reload, each card separated into different blocks of days during the month for their transactions.

Today was the first day of the first card that was set to transact but I found that the program did not auto-open on my PC. I had to manually run it myself in order for it to initiate the transactions. Is this how it is supposed to work or is it supposed to open on its own and do its thing on its own?

Also, I attempted it for Amazon and it did not work. It asked for the OTP code, which I provided, and then gave the following error details:

ERROR: 2021-12-02 13:43:35,146 etfcu_debit_card_amazon_gift_card_reload error: Traceback (most recent call last):
File "debbit.py", line 294, in web_automation_wrapper
File "C:\Program Files (x86)\debbit-v2.1.2-win64\program_files\merchants\amazon_gift_card_reload.py", line 122, in web_automation

Also, do I have to manually enter my OTP for Amazon every time that it runs? That seems to thwart the point of such an automated solution.

Using latest selenium deprecates many functions

I just updated to v2.1.4, and was met with a few deprecation warnings (presumably from debbit using the latest selenium version, which has been significantly overhauled).

The deprecated messages are:

DeprecationWarning: firefox_profile has been deprecated, please use an Options object
DeprecationWarning: executable_path has been deprecated, please pass in a Service object
DeprecationWarning: find_element_by_* commands are deprecated. Please use find_element() instead

Skip transactions during a particular month?

Is there a way to skip transactions during a particular month or edit the number of transactions already made? I already organically completed my transactions to meet my debit requirement this month so I don't need debbit to automate further purchases until next month. My laptop hasn't been restarted this month (and I haven't opened debbit) so it hasn't tried to do these purchases yet--is there a way to stop this from happening just in this month? Either by somehow manually editing the number of purchases that have already been made this month (ideal since this would be helpful in future months where I have some purchases but not all required for my debit requirement) or forcing it not to do transactions until a specific date?

Any ideas would be much appreciated!

Error out when opening the executable

MacOS 10.13.6
Python version 2.7.16
Python3 version 3.7.1

$ /Users/dan/Desktop/debbit-v2.0.1-M/debbit ; exit;
[5559] Error loading Python lib '/var/folders/qd/90lv0vl53_39mldqls88dvyh0000gp/T/_MEI9Hn106/Python': dlopen: dlopen(/var/folders/qd/90lv0vl53_39mldqls88dvyh0000gp/T/_MEI9Hn106/Python, 10): Symbol not found: ____chkstk_darwin
Referenced from: /var/folders/qd/90lv0vl53_39mldqls88dvyh0000gp/T/_MEI9Hn106/libintl.8.dylib (which was built for Mac OS X 10.15)
Expected in: /usr/lib/libSystem.B.dylib
in /var/folders/qd/90lv0vl53_39mldqls88dvyh0000gp/T/_MEI9Hn106/libintl.8.dylib
logout
Saving session...
...copying shared history...
...saving history...truncating history files...
...completed.

debbit_keep_window_open bat produces ModuleNotFoundError

Windows release:
Upon running debbit_keep_window_open bat file, I receive the following error

ERROR: 2020-08-21 11:43:34,864 Error loading enabled.py from merchants folder
Traceback (most recent call last):
File "debbit.py", line 694, in
File "debbit.py", line 51, in main
File "debbit.py", line 72, in load_merchant
File "debbit.py", line 67, in load_merchant
ModuleNotFoundError: No module named 'program_files.merchants.enabled'
[25108] Failed to execute script debbit

It doesn't look like an enabled.py normally exists though?

Debbit v.2.1 thread error

Running into this thread error using debbit 2.1

I have two Amazon reloads. The first one goes through but not the second one.

Thanks in advance!

image

Error: Clicked "Place your order" button, but unable to confirm if order was successful. When it was successful

Hello, I am getting the following message on 2.1.2 on windows 10.

It says it cant confirm whether the purchase was successful when it was successful. I understand why it would stop continuing to purchase, but it is working AFAIK.

Hope this helps.

ERROR: 2021-09-28 22:34:08,336 Clicked "Place your order" button, but unable to confirm if order was successful.
INFO: 2021-09-28 22:34:09,267 Successfully sent failure report for developer email to [email protected]
ERROR: 2021-09-28 22:34:10,074 Unable to verify XXX_debbit_card_amazon_gift_card_reload purchase was successful. Just in case, NOT SCHEDULING MORE XXX_debbit_card_amazon_gift_card_reload. Stop and re-run debbit to try again.

`max_day: 30` causes the script to crash in Feburary

One of my card has not made any purchase this month. I see this error in the log

Traceback (most recent call last):
  File "threading.py", line 932, in _bootstrap_inner
  File "threading.py", line 1254, in run
  File "debbit.py", line 241, in spread_recursion
  File "debbit.py", line 208, in schedule_next_spread
ValueError: day is out of range for month

My guess of the cause is `max_day : 30"

Amazon OTP

I keep getting an Amazon OTP and I am not sure how to resolve the issue. I have been using debbit with no issues for about a year now.

This is the error I am getting:

ERROR: 2022-06-03 14:53:00,112 Evansville_debbit_card_amazon_gift_card_reload error: Traceback (most recent call last):
File "debbit.py", line 294, in web_automation_wrapper

Amazon issue "Element could not be scrolled into view"

I'm having issues running debbit where when it gets to the point it needs to select the card to use, it errors out. Perhaps it is due to the large number of cards I have linked in my Amazon account?

I've tried this on Linux with the latest version of the debbit script and geckodriver and get this error:

v2.1.3-dev Linux Traceback (most recent call last):
  File "/home/shbach/debbit/src/debbit.py", line 294, in web_automation_wrapper
    result = merchant.web_automation(driver, merchant, amount)
  File "/home/shbach/debbit/src/program_files/merchants/amazon_gift_card_reload.py", line 160, in web_automation
    driver.find_element_by_xpath("//span[contains(text(),'Continue')]").find_element_by_xpath('../..').click()
  File "/home/shbach/.local/share/virtualenvs/src-VrT7s6Vy/lib/python3.9/site-packages/selenium/webdriver/remote/webelement.py", line 80, in click
    self._execute(Command.CLICK_ELEMENT)
  File "/home/shbach/.local/share/virtualenvs/src-VrT7s6Vy/lib/python3.9/site-packages/selenium/webdriver/remote/webelement.py", line 633, in _execute
    return self._parent.execute(command, params)
  File "/home/shbach/.local/share/virtualenvs/src-VrT7s6Vy/lib/python3.9/site-packages/selenium/webdriver/remote/webdriver.py", line 321, in execute
    self.error_handler.check_response(response)
  File "/home/shbach/.local/share/virtualenvs/src-VrT7s6Vy/lib/python3.9/site-packages/selenium/webdriver/remote/errorhandler.py", line 242, in check_response
    raise exception_class(message, screen, stacktrace)
selenium.common.exceptions.ElementNotInteractableException: Message: Element <span id="pp-me15RH-427" class="a-button a-button-primary a-hidden aok-hidden"> could not be scrolled into view

I also tried this in Windows and got a similar error:

v2.1.2 Windows Traceback (most recent call last):
  File "debbit.py", line 294, in web_automation_wrapper
  File "C:\Users\Steven\Downloads\debbit-v2.1.2-win64\program_files\merchants\amazon_gift_card_reload.py", line 160, in web_automation
    driver.find_element_by_xpath("//span[contains(text(),'Continue')]").find_element_by_xpath('../..').click()
  File "selenium\webdriver\remote\webelement.py", line 80, in click
  File "selenium\webdriver\remote\webelement.py", line 633, in _execute
  File "selenium\webdriver\remote\webdriver.py", line 321, in execute
  File "selenium\webdriver\remote\errorhandler.py", line 242, in check_response
selenium.common.exceptions.ElementNotInteractableException: Message: Element <span id="pp-AS7t00-427" class="a-button a-button-primary a-hidden aok-hidden"> could not be scrolled into view

tds telecom autopay troubleshooting

I'm having a hard time automating the following button. Wish I could copy/paste this easier, but not sure how to do so after inspection.

https://i.imgur.com/jyulDwn.png

As you can see, there are 3 almost identical buttons. The first two are hidden/don't work. I want to click the third one. I can't search by ID because button-1196 changes from login to login.

driver.find_element_by_xpath("//span[contains(text(), 'Submit Payment')]").click() works, but it finds the first link and not the third link. If I could get the button ID of the first button and add 2, that should work, but I'm at a bit of a loss trying to actually get this working.

Is this plugin abandoned now?

@jakehilborn you have not replied to my issue comments for a few months now and I see that you also have not replied to any issues since. I love the plugin and would hate to see it abandoned because it is totally awesome but please let your users know if it is so I can uninstall and search for another solution.

Debbit Unable to Log in to Xfinity.

Ever since Xfinity had me reset my password for the 3rd time or so for "suspicious" activity related to Debbit logging in to my account, Debbit had been unable to log in to my Xfinity account with the new updated password (updated in config text file). Xfinity would give the error message: "The Xfinity ID or password you entered was incorrect. Please try again." Inputting the same user ID and password manually into the same webpage (https://login.xfinity.com/login) would also not work. On the left of the address bar on that webpage (https://login.xfinity.com/login), you could see a robot icon with a message ("Browser is under remote control") if you hover the mouse over it.

However, if I open the Xfinity webpage (https://login.xfinity.com/login) and sign in manually using the same ID and password, I would be able to log in. I feel as if Xfinity is continuously flagging Debbit's attempts to log in as suspicious activity. Debbit would just get stuck on the sign-in page until a certain amount of time passes, and then it would try logging in again later. I double-checked that the ID and password are correct in the config file.

Is anybody else having this issue of Debbit not being able to log in to Xfinity? For now, I will have to make the required number of transactions for my cards manually.

Alternative(s)?

First off, nice job on this. I've had it bookmarked since your first Reddit post about it, and I'm a long-time fan of Doctor of Credit as well.

I am _not _ suggesting that anyone switch to it instead, but I did want to briefly check if you had seen https://github.com/ab763/finance-transact ? (Finance-transact is, in turn, a fork of the older https://github.com/everettsouthwick/amazon-auto-reload )
It started as Python code with the same goal as yours before everettsouthwick rewrote it for Node.JS (and I had then subsequently moved it to TypeScript).

I like that you store state and that you've been attempting to resolve hurdles that website operators have put up.

I like our class/file organization/hierarchy/inheritance. I earlier moved our code to use a generic config file loader so we ended up with the config file format https://github.com/ab763/finance-transact/tree/master/config
I had thought it a pretty clean approach, although it might not have worked well for the more ambitious multi-merchant approach you're doing.
Although we started focused on Amazon, like you I also implemented additional merchant(s).

I enjoy the large number of community packages available in npm, although personally I'd prefer to be using a language with stronger type checking than TypeScript.

But my code varied in that I also implemented logging into a number of different financial institutions to check for existing activity before proceeding (Bank of America, Capital One, U.S. Bank, Discover, Barclaycard, and more). As this gave me an existing tool that logged into some of the same financial institutions I needed, I then expanded it to handle another finance function I needed - transferring excess available cash into a central account. I implemented this for Schwab, TD Ameritrade, E*Trade, Merrill Edge, Wealthfront, All America Bank, and a couple of smaller banks. However, that extra code is either commented in the public repo or not committed to that repo, as I didn't think there was an audience for it.
A graphical interface is on my todo list.

I just wrapped up a different project so I'm looking to get back into things, and I just wanted to check if you had seen this other solution, and if you've considered any other programming languages for debbit in the future. Thank you again.

Socalgas Automated Payments?

Hi there!

Love this code you've written, thank you so much for sharing it with us. I was wondering if it would be possible to set it up with SoCalGas as well?

Thanks again!
Allen

Request: 1 cent purchases on Amazon

My bank requires 10 debit card transactions a month. Since I get 5% cashback on my Amazon.com purchases from my credit card, I would lose less money if I made 120 1 cent purchases than if I were to reload 50 cents 120 times annually with my no-cashback debit card.

There was a list posted by FifenC0ugar on Reddit for 1 cent items: https://amazon.com/hz/wishlist/ls/2OD38KEKFXVT4

Custom Merchant variables

I've been able to write a script for my small local cable company, and gotten most of it working properly except the end, but I've hardcoded some of the variables.

So far debbit.py only references card number, not CVV, type, month, year, name, security code on amex. ~10 Custom variables might be useful for these settings to be called in the merchant script and added to debbit.py.

That being said, hard coding them is probably easier.

Fios, 2FA, Multiple Cards, Keepass

Hello,
I recently stumbled across this and think it's a very interesting idea.
A few questions:
1 is it possible to set up for Verizon Fios in addition to Xfinitity?
2 is it assumed there are no 2FA setups on accounts? Or does this play nicely and prompt for 2FA, wait, then proceed? 2FA is an option on Amazon accounts, for example.
3 how does the user incorporate multiple cards? For example, if you want to use two cards on Amazon can you just copy/paste the entire amazon section in the config file a second time and change the pertinent details?
4 is it possible to integrate with password managers such as Keepass?

Thanks

FileNotFoundError: "webdriver_prefs.json" does not exist in the path that the program is searching within

I am getting the following error now:

FileNotFoundError: [Errno 2] No such file or directory: 'C:\Users\nicho\AppData\Local\Temp\_MEI49882\selenium\webdriver\firefox\webdriver_prefs.json'

Here is the full messaging though:

debbit.py:509: DeprecationWarning: firefox_profile has been deprecated, please use an Options object
Exception in thread Thread-1:
Traceback (most recent call last):
File "threading.py", line 932, in _bootstrap_inner
File "threading.py", line 870, in run
File "debbit.py", line 113, in burst_loop
File "debbit.py", line 289, in web_automation_wrapper
File "debbit.py", line 509, in get_webdriver
File "selenium\webdriver\firefox\firefox_profile.py", line 61, in init
FileNotFoundError: [Errno 2] No such file or directory: 'C:\Users\nicho\AppData\Local\Temp\_MEI49882\selenium\webdriver\firefox\webdriver_prefs.json'

When I navigate to the "firefox" folder in this path, no "webdriver_prefs.json" file is present. No files at all are present. I have show hidden files selected.

OSError: [Errno 22] Invalid Argument

Seems it's getting hung up starting the script. I've attached all the text from when it runs. No failures folder.

C:\Users\Austin\Desktop\Files\Debbit>debbit.exe
INFO: 2020-06-30 10:53:10,665 __ __ __ _ __
INFO: 2020-06-30 10:53:10,665 / / / / / / () /
INFO: 2020-06-30 10:53:10,666 / __ / _ / __ / __ / / /
INFO: 2020-06-30 10:53:10,666 / // / __/ // / // / / /
INFO: 2020-06-30 10:53:10,666 _,/_
/././/_/ v2.0.1
INFO: 2020-06-30 10:53:10,666
INFO: 2020-06-30 10:53:10,784 No purchases yet complete for June 2020
INFO: 2020-06-30 10:53:10,784
Exception in thread Thread-1:
Traceback (most recent call last):
File "threading.py", line 926, in _bootstrap_inner
File "threading.py", line 870, in run
File "debbit.py", line 134, in burst_loop
File "debbit.py", line 158, in log_next_burst_time
OSError: [Errno 22] Invalid argument

Press any key to close this window...

Amazon gift card page changed

I think amazon changed their page today. I can share my failure files, but I suspect it'll be obvious.

  File "debbit.py", line 294, in web_automation_wrapper
    result = merchant.web_automation(driver, merchant, amount)
  File "/home/webdriver/debbit/program_files/merchants/amazon_gift_card_reload.py", line 141, in web_automation
    WebDriverWait(driver, 30).until(expected_conditions.element_to_be_clickable((By.ID, 'asv-manual-reload-amount')))
  File "/home/webdriver/.local/share/virtualenvs/debbit-CQa1CbFm/lib/python3.7/site-packages/selenium/webdriver/support/wait.py", line 80, in until
    raise TimeoutException(message, screen, stacktrace)
selenium.common.exceptions.TimeoutException: Message: 

  File "debbit.py", line 294, in web_automation_wrapper
    result = merchant.web_automation(driver, merchant, amount)
  File "/home/webdriver/debbit/program_files/merchants/amazon_gift_card_reload.py", line 24, in web_automation
    expected_conditions.element_to_be_clickable((By.XPATH, "//button[starts-with(text(),'Reload')]"))
  File "/home/webdriver/.local/share/virtualenvs/debbit-CQa1CbFm/lib/python3.7/site-packages/selenium/webdriver/support/wait.py", line 80, in until
    raise TimeoutException(message, screen, stacktrace)
selenium.common.exceptions.TimeoutException: Message: 

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.