Code Monkey home page Code Monkey logo

us-visa-bot's People

Contributors

ed1123 avatar stefanvodita 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

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

us-visa-bot's Issues

How to install

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?

Do we know if it's legal to scrape this website?

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!

selenium.common.exceptions.NoSuchElementException

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"]"}

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.