ed1123 / us-visa-bot Goto Github PK
View Code? Open in Web Editor NEWA scraper that looks for availability of Visa appointments on https://ais.usvisa-info.com and tells you through Telegram.
A scraper that looks for availability of Visa appointments on https://ais.usvisa-info.com and tells you through Telegram.
So i had to change creds.py.example to creds.py
I changed your URLS to mine yet now i get this error like before:
if has_website_changed():
File "C:\Users\PC\Desktop\visa_web_scraper-main\selenium_scraper.py", line 54, in has_website_changed
with open('debugging/page_source.html', 'w', encoding='utf-8') as f:
FileNotFoundError: [Errno 2] No such file or directory: 'debugging/page_source.html'
what should i do?
Hi,
I know this isn't a formal issue but I was curious if anyone knew if web scraping this website (ais.usvisa-info.com
) is legal. I want to use this application but am concerned that my account could be flagged.
Any thoughts?
Thanks!
Thanks a lot for the great project!
I just ran into some bug(?) here.
After I run the python3 selenium_scraper.py
, it gives me the following NoSuchElementException
. I have not got chance to type in anything yet. Do I need to change some part of the code ourselves?
Thanks in advance for sharing it!
Checking for changes.
Page reached.
Traceback (most recent call last):
File "selenium_scraper.py", line 142, in
main()
File "selenium_scraper.py", line 139, in main
run_visa_scraper(url, text)
File "selenium_scraper.py", line 107, in run_visa_scraper
if has_website_changed(driver, url, no_appointment_text):
File "selenium_scraper.py", line 76, in has_website_changed
main_page = driver.find_element(By.ID, 'main')
File "/Users/xxx/anaconda3/lib/python3.7/site-packages/selenium/webdriver/remote/webdriver.py", line 858, in find_element
'value': value})['value']
File "/Users/xxx/anaconda3/lib/python3.7/site-packages/selenium/webdriver/remote/webdriver.py", line 429, in execute
self.error_handler.check_response(response)
File "/Users/xxx/anaconda3/lib/python3.7/site-packages/selenium/webdriver/remote/errorhandler.py", line 243, in check_response
raise exception_class(message, screen, stacktrace)
selenium.common.exceptions.NoSuchElementException: Message: no such element: Unable to locate element: {"method":"css selector","selector":"[id="main"]"}
/.
Could you pls contact me? I'm interested in this code and I'm willing to pay you for helping. [email protected]
Hey, where can i contact you?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.