8000 GitHub - phil-flip/furaffinity
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
This repository was archived by the owner on Mar 1, 2022. It is now read-only.

phil-flip/furaffinity

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DEPRECATED ❗

❗ THIS REPO IS NO LONGER KEPT UP TO DATE. Use https://github.com/recallfuture/furaffinity-api instead! ❗

fa-node

The orginal repository is made by insert and can be found here. This is simply a fix to still get images after some website changes (ex. shinies) and is only here t 6F0F o be used in a discord bot.

FurAffinity wrapper for Node.js

Usage

To get the most recent content:

import { Recent, Type, Login } from 'furaffinity';
// or
let { Recent, Type, Login } = require('furaffinity');

// to allow all results to be accessible, add your cookies
Login("cookie_a", "cookie_b");

Recent(Type.Artwork).then(res => {
  // res is an array of Result(s)
  res[0].getSubmission().then(submission => {
    // submission is a Submission
  });
});

Searching for content:

import { Search, Type } from 'furaffinity';

Search('search query', { /** SearchOptions */ type?, rating? }).then(res => {
  // res is an array of Result(s)
  res[0].getSubmission().then(submission => {
    // submission is a Submission
  });
});

Looking up a specific submission:

import { Submission } from 'furaffinity';

Submission('1234567890').then(res => {
  // res is a Submission
});

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •  
0