Comments (5)
Just tested the last days, should be fine too:
Settings:
- sleep_between_requests_in_s=120
- sleep_between_failed_requests_in_s=10
- sleep_after_ipban_in_min=180
- jitter=10
going now lower (60s)
from impfbot.
Are you guys actually sure, that the ipBan really exists?
Never experienced such thing using:
Code
import time
from selenium import webdriver
from selenium.webdriver.common.keys import Keys
import json
from selenium.webdriver.common.desired_capabilities import DesiredCapabilities
from seleniumwire import webdriver
from selenium.webdriver.support.ui import WebDriverWait
datum="1.2.2020"
plzahl="123456"
caps = DesiredCapabilities.CHROME
caps['goog:loggingPrefs'] = {'performance': 'ALL'}
driver = webdriver.Chrome(desired_capabilities=caps)
#driver = webdriver.Chrome()
driver.get("https://www.impfportal-niedersachsen.de/portal/#/appointment/public")
#sleep(1000)
checkBox = driver.find_element_by_name("datenschutz")
checkBox.click()
#weiter=driver.find_element_by_link_text(" Weiter ")
time.sleep(1)
weiter=driver.find_element_by_xpath("//span[contains(text(), ' Weiter ')]")
weiter.click()
time.sleep(1)
weiter.click()
time.sleep(1)
age = driver.find_element_by_id('mat-input-2')
age.send_keys(datum)
weiter.click()
time.sleep(1)
weiter.click()
time.sleep(1)
#time.sleep(5)
sick = driver.find_element_by_tag_name("mat-radio-button")
sick = driver.find_element_by_class_name("mat-radio-container")
driver.execute_script("arguments[0].click();", sick);
gotIt=driver.find_element_by_xpath("//span[contains(text(), 'Verstanden')]")
gotIt.click()
time.sleep(1)
weiter.click()
time.sleep(1)
weiter.click()
time.sleep(1)
plz = driver.find_element_by_name("zipCode")
plz.send_keys(plzahl)
check=driver.find_element_by_xpath("//span[contains(text(), 'Suchen')]")
check.click()
time.sleep(3)
jay= json.loads(driver.last_request.response.body)
outOfStock=jay["resultList"][0]["outOfStock"]
while(outOfStock):
try:
check.click()
except:
print("Error")
continue
#time.sleep(1)
onStock="Fehler"
outOfStock=jay["resultList"][0]["outOfStock"]
onStock=not outOfStock
print("Impfe verfügbar: "+str(onStock))
print("yeeees")
time.sleep(100000000000000)
driver.close()
from impfbot.
Yes there are ip bans (403s) and shadowbans with captchas. When and why (and which conditions) lead to a ban are unknown. With 15s on my home connection i had relatively fast only captchas and shortly after 403s, with a bussiness connection and 1s cooldown there was none. How long has your code been running?
from impfbot.
script has been running for hours with zero sleeptime in between requests.
captchas do appear when vaccine was found and selected, on the "enter your telephone number" page, but never on the "search for vaccine" page which i am refreshing in a the while loop.
I'm using selenium so the request is getting build by chrome. So maybe the server is detecting by header, that the request is produced by a bot?
from impfbot.
Using selenium/a real browser don't manke any difference, as far as i can tell. Please report back in a few days if anything has changed.
from impfbot.
Related Issues (20)
- Gather mail setup examples for popular mail providers
- Disclaimer to use waiting list in addition to the bot
- Why does the user_agent setting not allow spaces? HOT 2
- Automatisierte Impfterminbuchung HOT 13
- Add exception management HOT 1
- Printing of settings with a list value misses a delimiter HOT 3
- Vector vaccine for under 60s HOT 1
- Docker image for Raspberry Pi (arm64) missing HOT 3
- Sending email from Web.de failed HOT 1
- docker composes creates config.ini as folder HOT 1
- Error 'Could not send Email' during validation [gmail.com] HOT 3
- Release v3.0.0 HOT 2
- Config properties in the example do not match requirements in Docker-Compose HOT 3
- Running on server causes crash at import of configurator gui HOT 4
- Validation code fails with --alert argument only
- Telegram group IDs stopped working in 3.0 or logging problem HOT 1
- lower() for checks against YES/NO lists HOT 1
- add admin mail notifications HOT 1
- add custom prefix for alert messages HOT 1
- Android App HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from impfbot.