{"id":17965204,"url":"https://github.com/tokenrove/mechanizerl","last_synced_at":"2025-06-17T04:04:21.409Z","repository":{"id":147613480,"uuid":"6632736","full_name":"tokenrove/mechanizerl","owner":"tokenrove","description":"Web testing tool for Erlang modelled after WWW::Mechanize","archived":false,"fork":false,"pushed_at":"2015-09-26T17:14:46.000Z","size":125,"stargazers_count":3,"open_issues_count":0,"forks_count":1,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-04-03T19:47:06.750Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Erlang","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/tokenrove.png","metadata":{"files":{"readme":"README.rst","changelog":null,"contributing":null,"funding":null,"license":"COPYING","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2012-11-10T21:50:03.000Z","updated_at":"2022-05-07T18:38:39.000Z","dependencies_parsed_at":"2023-04-08T11:43:34.078Z","dependency_job_id":null,"html_url":"https://github.com/tokenrove/mechanizerl","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/tokenrove/mechanizerl","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tokenrove%2Fmechanizerl","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tokenrove%2Fmechanizerl/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tokenrove%2Fmechanizerl/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tokenrove%2Fmechanizerl/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tokenrove","download_url":"https://codeload.github.com/tokenrove/mechanizerl/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tokenrove%2Fmechanizerl/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":260288461,"owners_count":22986665,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-29T12:10:29.382Z","updated_at":"2025-06-17T04:04:21.369Z","avatar_url":"https://github.com/tokenrove.png","language":"Erlang","funding_links":[],"categories":[],"sub_categories":[],"readme":"mechanizerl\n===========\n\nA clone of WWW::Mechanize for Erlang, with perhaps a bit of\nTest::WWW::Mechanize and Webtest for good measure.  Named according to\nthe seeming defacto convention of inserting \"erl\" in silly places in\nthe name.  This is primarily a convenience wrapper around httpc.\n\nExamples:\n---------\n\n.. code-block:: erlang\n\n   erl -pa ebin -boot start_sasl -s inets -s xmerl -s mechanizerl\n\n   1\u003e Mech = mechanizerl:new().\n   {mechanizerl,\u003c0.64.0\u003e}\n   2\u003e Mech:get(\"http://google.com/\").\n   ok\n   3\u003e Mech:submit_form(\"search\", [{q, \"mechanizerl\"}]).\n   ok\n   4\u003e Mech:body().\n   \u003c\u003c\"\u003chtml\u003e...\"\u003e\u003e\n\nCaveats:\n--------\n\n* The interface isn't as Erlangy as it could be (it uses the lowly\n  tuple calls), as I tried to follow the WWW::Mechanize API closely to\n  facilitate translating old tests I had written in perl into Erlang.\n  Part of the efficacy of Mechanize's interface is its statefulness.\n\n* This uses xmerl to parse the HTML it receives.  This works for me,\n  since I tend to write HTML in an XHTML-ish fashion, but be warned that\n  it will choke on lots of other HTML.  I considered using one of the\n  HTML parsers from YAWS or Mochiweb, but it seemed unnecessary for my\n  purposes.\n\n* Strings are used throughout rather than binaries, for convenience\n  rather than efficiency.\n\n* I've only implemented so far the subset of WWW::Mechanize's\n  functionality that I actually use.  For example, cookies are always\n  enabled.  Patches Thoughtfully Considered.\n\n* Lists are used in numerous places where more sophisticated data\n  structures would be more efficient.  Making the simplest thing that\n  would work trumped efficiency in this first version.\n\nTo do:\n------\n\n* Enforce constraints on fields (select options, maxlength, et\n  cetera);\n\n* More extensive testing: replay-based testing of redirects, et\n  cetera;\n\n* File upload;\n\n* Examples and documentation.\n\nContact\n-------\n\nJulian Squires \u003cjulian@cipht.net\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftokenrove%2Fmechanizerl","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftokenrove%2Fmechanizerl","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftokenrove%2Fmechanizerl/lists"}