0.2.4 • Published 3 years ago

lust-types v0.2.4

Weekly downloads
-
License
ISC
Repository
github
Last release
3 years ago

Lust.js (Bêta)

Un client javascript pour le site https://net-lust.com/

npm i lust.js

const Lust = require("lust.js");

var app = new Lust("xxx@xxx.xx", "xxxxxxxxx");

app.login();

// [...]

docs

Table of Contents

Lust

login

Connexion au compte Lust

Parameters

  • email string Le mail du compte
  • password string Le mot de passe du compte

Examples

var app = new Lust("xxx@xxxx.xx", "xxx");
app.login().then(() => {
  app.getHome().then((posts) => console.log(posts.postsFollow));
});

Returns promise

getProfil

Permet de récupérer les informations d'un profil (pas besoin d'être connecté)

Parameters

  • username string (optional, default "nom d'utilisateur si connecté")

Examples

app.getProfil("andronedev").then(console.log)
// return :
  {
    username: 'andronedev',
    imgProfil: 'https://net-lust.com/assets/users/profils/1115514632.gif',
    followersCount: '1',
    memberSince: '20 Feb 2021',
    posts: [
      {
        id: '341',
        username: 'andronedev',
        profilLink: 'https://net-lust.com/profil?pseudo=andronedev',
        date: 'il y a 11 jours',
        message: 'Salut',
        img: null
      },
     [...]
    ]
  }

Returns json

getHome

Permet de récupérer des informations à partir de la page home.

Examples

app.getHome().then(posts=>console.log(posts))
// return :
 {
   postsFollow: [
     {
       id: '444',
       username: 'Zartov',
       profilLink: 'https://net-lust.com/profil?pseudo=Zartov',
       date: 'il y a 4 jours',
       message: 'pas mal #FlightSimulator 😅',
       img: 'https://i.imgur.com/tMT4Blv.jpg'
     },
    [...]
 {

Returns json flux d'accueil (posts)

getComments

Permet de récupérer les commentaires d'un post

Parameters

Examples

app.getComments("444").then(console.log)
// return :
[
 {
   username: 'andronedev',
   profilLink: 'https://net-lust.com/profil?pseudo=Zartov',
   date: 'il y a 21 jours',
   message: 'Salut !'
 },
[...]
]

Returns json

search

Permet de récupérer le resultat d'une recherche

Parameters

  • query string champ de recherche

Examples

app.search("zar").then(console.log)
// return :
  [
    { type: 'hashtag', hashtag: '#ZartovElypse' },
    {
      type: 'account',
      username: 'Zartov',
      profilLink: 'profil?pseudo=Zartov',
      imgProfil: 'assets/users/profils/1115514560.jpg'
    },
   [...]
  ]

Returns json

0.2.3

3 years ago

0.2.4

3 years ago

0.2.1

3 years ago

0.2.0

3 years ago

0.1.7

3 years ago

0.2.2

3 years ago

0.1.6

3 years ago

0.1.5

3 years ago

0.1.4

3 years ago

0.1.3

3 years ago

0.1.2

3 years ago

0.1.1

3 years ago

0.1.0

3 years ago

0.0.6

3 years ago

0.0.5

3 years ago

0.0.4

3 years ago

0.0.3

3 years ago

0.0.2

3 years ago

0.0.1

3 years ago