{"library":"MechanicalSoup","type":"library","category":null,"description":"Python library for automating website interaction — form submission, cookie handling, link following. Built on requests + BeautifulSoup. Current version is 1.4.0 (2023). Install name is MechanicalSoup (capital M and S), import is mechanicalsoup (all lowercase). Does NOT execute JavaScript — use Playwright or Selenium for JS-rendered pages. Maintenance status: low activity since 2023.","language":"python","status":"active","version":"1.4.0","tags":["web-scraping","forms","automation","requests","beautifulsoup","browser-automation"],"last_verified":"Tue Jun 09","install":[{"cmd":"pip install MechanicalSoup","imports":["import mechanicalsoup\n\n# StatefulBrowser remembers state (cookies, current page)\nbrowser = mechanicalsoup.StatefulBrowser(\n    soup_config={'features': 'lxml'},\n    raise_on_404=True  # recommended: raise on 404 instead of silently failing\n)\nbrowser.open('https://example.com/login')\nbrowser.select_form('#login-form')\nbrowser['username'] = 'alice'\nbrowser['password'] = 'secret'\nbrowser.submit_selected()"]}],"homepage":"https://mechanicalsoup.readthedocs.io/","github":"https://github.com/MechanicalSoup/MechanicalSoup","docs":null,"changelog":null,"pypi":"https://pypi.org/project/MechanicalSoup/","npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"compatibility":{"summary":{"python_range":"3.10–3.9","success_rate":100,"avg_install_s":2.9,"avg_import_s":1.07,"wheel_type":"wheel"},"url":"https://checklist.day/v1/registry/MechanicalSoup/compatibility"}}