Giter VIP home page Giter VIP logo

alimama-auto-login's Introduction

Alimama auto login

Login into Alimama automatically and get the taobaoke link

CommandLine USAGE

$ vi config.js

  email : [email protected]
  password : your password

$ node app login 

Begin auto login ...
request token success ...
login success
获得的淘宝客链接是:...

done.

USAGE

var alimama = require('alimama-auto-login');

alimama.userinfo( 'your_email' , 'your_password' );
alimama.goodsurl('http://item.taobao.com/item.htm?spm=a1z10.1.w4004-4691356287.3.zn8QiS&id=36105974323'); 

var convert_url = alimama.auto_convert(); 

console.log( convert_url );

or you can do it like this

var alimama = require('alimama-auto-login');
var Fiber = require('fibers');

alimama.userinfo( 'your_email' , 'your_password' );
//alimama.goodsurl('http://item.taobao.com/item.htm?spm=a1z10.1.w4004-4691356287.3.zn8QiS&id=36105974323'); 
//var convert_url = alimama.auto_convert(); 
//console.log( convert_url );

var url1 = 'http://item.taobao.com/item.html?id=27562236207';
var url2 = 'http://item.taobao.com/item.html?id=18691034267';
var url3 = 'http://item.taobao.com/item.html?id=25085308362';

Fiber(function (){
  alimama.auto_login();
  alimama.get_url(url1);
  alimama.get_url(url2);
  alimama.get_url(url3);
}).run();

API

alimama-auto-login's People

Contributors

lbj96347 avatar

Watchers

James Cloos avatar zero-m avatar

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.