srveit / mechanize-js Goto Github PK
View Code? Open in Web Editor NEWMechanize is a Javascript library that enables automated web interaction.
License: MIT License
Mechanize is a Javascript library that enables automated web interaction.
License: MIT License
@srveit I'm not sure if session cookies are being maintained throughout get, submit and postForm actions.
The website I am posting to says that there is an error message and that there's no session carried through when I postForm.
Can you comment or can we collaborate on gitter?
Without having to fish through the source, could you provide some documentation? This repo is exactly what I am looking for!
Thanks
3.6.0
to 3.6.1
.This version is covered by your current version range and after updating it in your project the build failed.
jsdoc is a devDependency of this project. It might not break your production code or affect downstream projects, but probably breaks your build or test tools, which may prevent deploying or publishing.
The new version differs by 3 commits.
0645930
3.6.1
bac40ab
Parse type applications correctly in Node.js 12. (#1643)
e5919e4
Update .gitignore.
See the full diff
There is a collection of frequently asked questions. If those don’t help, you can always ask the humans behind Greenkeeper.
Your Greenkeeper Bot 🌴
6.5.4
to 6.5.5
.This version is covered by your current version range and after updating it in your project the build failed.
ajv is a direct dependency of this project, and it is very likely causing it to break. If other packages depend on yours, this update is probably also breaking those in turn.
The new version differs by 7 commits.
494026e
6.5.5
6478687
Merge pull request #860 from ossdev07/master
2acd5f3
Merge pull request #865 from jsdevel/adding-logger-to-ts
d5edde4
Merge pull request #871 from nwoltman/patch-1
8d769b6
Remove duplicated character in email regex
ae68416
Adding logger to typescript Options declaration.
85b7f52
replacing phantomjs with headless chrome
See the full diff
There is a collection of frequently asked questions. If those don’t help, you can always ask the humans behind Greenkeeper.
Your Greenkeeper Bot 🌴
I noticed that the package in npm is a year old:
https://www.npmjs.org/package/mechanize
It looks like a lot of people are installing it each month. Is it difficult to update the package?
Hello,
First of all, thank you for your work.
I've tried unsuccessfully to run the submit_form.js
with the following error:
ReferenceError: Cookie is not defined
at Object.<anonymous> (C:\Users\ARC\node_modules\mechanize\bin\submit_form.js:11:14)
at Module._compile (module.js:570:32)
at Object.Module._extensions..js (module.js:579:10)
at Module.load (module.js:487:32)
at tryModuleLoad (module.js:446:12)
at Function.Module._load (module.js:438:3)
at Module.runMain (module.js:604:10)
at run (bootstrap_node.js:393:7)
at startup (bootstrap_node.js:150:9)
at bootstrap_node.js:508:3
Unfortunately, I don't know much about the nodejs import system.
My OS is Windows7, node version is v6.10.2 and npm is v3.10.10
Thanks in advance for your help
Branch | Build failing 🚨 |
---|---|
Dependency |
eslint-plugin-jasmine
|
Current Version | 2.9.3 |
Type | devDependency |
This version is covered by your current version range and after updating it in your project the build failed.
eslint-plugin-jasmine is a devDependency of this project. It might not break your production code or affect downstream projects, but probably breaks your build or test tools, which may prevent deploying or publishing.
<a name"2.10.0">
The new version differs by 2 commits.
0c29526
fix(docs,tests): add arrow functions in tests, update docs, remove insideReturnStatement
9bd0f76
feat(rule): add rule to disallow promise without done.fail
See the full diff
There is a collection of frequently asked questions. If those don’t help, you can always ask the humans behind Greenkeeper.
Your Greenkeeper Bot 🌴
5.15.3
to 5.16.0
.This version is covered by your current version range and after updating it in your project the build failed.
eslint is a direct dependency of this project, and it is very likely causing it to break. If other packages depend on yours, this update is probably also breaking those in turn.
dfef227
Build: gensite passes rulesMeta to formatter rendering (#11567) (Kevin Partington)c06d38c
Fix: Allow HTML formatter to handle no meta data (#11566) (Ilya Volodin)87a5c03
Docs: func-style
: clarify when allowArrowFunctions
is used (#11548) (Oliver Joseph Ash)bc3e427
Update: pass rule meta to formatters RFC 10 (#11551) (Chris Meyer)b452f27
Chore: Update README to pull in reviewer data (#11506) (Nicholas C. Zakas)afe3d25
Upgrade: Bump js-yaml dependency to fix Denial of Service vulnerability (#11550) (Vernon de Goede)4fe7eb7
Chore: use nyc instead of istanbul (#11532) (Toru Nagashima)f16af43
Chore: fix formatters/table test (#11534) (Toru Nagashima)78358a8
Docs: fix duplicate punctuation in CLI docs (#11528) (Teddy Katz)The new version differs by 11 commits.
ded2f94
5.16.0
ea36e13
Build: changelog update for 5.16.0
dfef227
Build: gensite passes rulesMeta to formatter rendering (#11567)
c06d38c
Fix: Allow HTML formatter to handle no meta data (#11566)
87a5c03
Docs: func-style
: clarify when allowArrowFunctions
is used (#11548)
bc3e427
Update: pass rule meta to formatters RFC 10 (#11551)
b452f27
Chore: Update README to pull in reviewer data (#11506)
afe3d25
Upgrade: Bump js-yaml dependency to fix Denial of Service vulnerability (#11550)
4fe7eb7
Chore: use nyc instead of istanbul (#11532)
f16af43
Chore: fix formatters/table test (#11534)
78358a8
Docs: fix duplicate punctuation in CLI docs (#11528)
See the full diff
There is a collection of frequently asked questions. If those don’t help, you can always ask the humans behind Greenkeeper.
Your Greenkeeper Bot 🌴
When i start node your project: node bin/get_page.js
and get errrors bellow:
/home/thiensubs-linux/Documents/mechanize-js/node_modules/libxmljs/node_modules/bindings/bindings.js:79
throw e
^
Error: /home/thiensubs-linux/Documents/mechanize-js/node_modules/libxmljs/build/Release/xmljs.node: undefined symbol: _ZN2v82V837AdjustAmountOfExternalAllocatedMemoryEl
at Error (native)
at Module.load (module.js:355:32)
at Function.Module._load (module.js:310:12)
at Module.require (module.js:365:17)
at require (module.js:384:17)
at bindings (/home/thiensubs-linux/Documents/mechanize-js/node_modules/libxmljs/node_modules/bindings/bindings.js:74:15)
at Object. (/home/thiensubs-linux/Documents/mechanize-js/node_modules/libxmljs/lib/bindings.js:1:99)
at Module._compile (module.js:460:26)
at Object.Module._extensions..js (module.js:478:10)
at Module.load (module.js:355:32)
Hi Stephen, thanks for the module. I'm trying to do a simple form submit, but it doesn't seem to be working.
br = mechanize.newAgent()
br.get({uri:'https://login.yahoo.com/config/login_verify2?&.src=ym&.intl=us'}, function(err, page){
var f = page.form('login_form');
f.setFieldValue('login','myUsername');
f.setFieldValue('passwd','myPassword');
f.submit(function(err, page){
console.log(page);
});
});
When I run this, I get: cannot "find" of null
on page.search(xpath)
Can you help? Thanks.
How does mechanize-js
compare to PhantomJS?
Apart from the lacking documentation.
I've noticed that this library has been unmaintained for 10 months and no replies from the owner.
To see what happens to your code in Node.js 10, Greenkeeper has created a branch with the following changes:
.travis.yml
package.json
files, so that was left aloneIf you’re interested in upgrading this repo to Node.js 10, you can open a PR with these changes. Please note that this issue is just intended as a friendly reminder and the PR as a possible starting point for getting your code running on Node.js 10.
Greenkeeper has checked the engines
key in any package.json
file, the .nvmrc
file, and the .travis.yml
file, if present.
engines
was only updated if it defined a single version, not a range..nvmrc
was updated to Node.js 10.travis.yml
was only changed if there was a root-level node_js
that didn’t already include Node.js 10, such as node
or lts/*
. In this case, the new version was appended to the list. We didn’t touch job or matrix configurations because these tend to be quite specific and complex, and it’s difficult to infer what the intentions were.For many simpler .travis.yml
configurations, this PR should suffice as-is, but depending on what you’re doing it may require additional work or may not be applicable at all. We’re also aware that you may have good reasons to not update to Node.js 10, which is why this was sent as an issue and not a pull request. Feel free to delete it without comment, I’m a humble robot and won’t feel rejected 🤖
There is a collection of frequently asked questions. If those don’t help, you can always ask the humans behind Greenkeeper.
Your Greenkeeper Bot 🌴
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.