Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

scrapegen

Package Overview
Dependencies
Maintainers
1
Versions
18
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

scrapegen

A webscraper for a deep dream generator website for unlimited free text2img conversions

  • 1.0.11
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
0
decreased by-100%
Maintainers
1
Weekly downloads
 
Created
Source

scrapegen - free deep dream text2image.

Note that this is for educational purposes only!


Installation:

npm install scrapegen


Description:

A webscraper that generates a fake account on deepdreamgenerator.com and uses the free tokens to generate a single image within 90 seconds. You can use it with no ratelimits and in parallel, however I am in no way condoning such behaviour and I am not responsible if you are to get banned using this. Please read their info and guidelines properly.


All possible settings/models/options etc:

It's all in config.ini.example


Functions:

.generate( config, callback (optional) )

An asynchronous function that returns the image link once done processing. You can also pass in a callback function.

// Returns a promise (the link as a string)! You need to await if you wanna capture the data.
scrapegen.generate({
    prompt: "Japanese Woman",
    model: 'PhotoReal',
    aspect_ratio: 'Portrait',
    quality: 'High',
    negative_prompt: `ugly, scary, mangled, cross eye, abstract, weird`,
    face_enhance: 'Normal',
    upscale_and_enhance: '1MP',
    follow_model_style: 'true'
    
}, callback = (link => console.log(`Generated image: ${link}`) ))

.generate_from_ configini( path_to_config.ini, callback (optional) )

An asynchronous function like the one above that generates an image based on a prompt from a config.ini file. The format for the config.ini file is provided in config.ini.example.

async function getImage() {
    let image_link = await scrapegen.generate_from_configini('path/to/config.ini');
    console.log(link) // Log the image link
}

( async () => await getImage() )()

.exampleData

Returns some example data from config.ini to play around with. Use it with .generate instead of your own prompt to test it out.

let link = await scrapegen.generate( scrapegen.exampleData )

Usage Examples


Example 1: Generating a cyberpunk version of Mona Lisa lookalike and then opening the generated image in our default browser.

const scrapegen = require('scrapegen');
const open = require('open');

(async () =>
    await scrapegen.generate({

        prompt: `a cyberpunk painting of a cyberpunk monalisa wearing cyberpunk intricate streetwear, , woman with long cyberpunk hair and a smile on her face and neon tattoos, with a green background and a blue cyberpunk city, volumetric lighting, inceoglu dragan bibin hans thoma greg rutkowski alexandros pyromallis nekro rene margitte illustrated, fine details, realistic shaded, 4k, hyper detailed, beautiful, detailed portrait, cell shaded, 4 k, vivid colours, concept art, by wlop, ilya kuvshinov, artgerm, krenz cushart, greg rutkowski, pixiv. cinematic dramatic atmosphere, sharp focus, volumetric lighting, cinematic lighting, studio quality`,
        model: 'Quantum (v2)',
        aspect_ratio: 'Portrait',
        quality: 'High',
        negative_prompt: `cartoon, bad art, bad artist, mutated`,
        face_enhance: 'Normal',
        upscale_and_enhance: '1MP',
        follow_model_style: 'false'
    })
    .then(image_link => {
        open(image_link);
    })
    .catch(e => {
        console.log(`Yikes! Hit an error:\n${e}`)
    })
)()

Example 2: Using a config.ini file to generate an image and logging it to the console with a callback arguement.

const scrapegen = require('scrapegen');

async function getImage() {

    await scrapegen.generate_from_configini('./custom_config.ini', ( link => console.log(`Generated Image: ${link}`)) );

}

console.log("Generating image...");
( async () => await getImage() )();


⚠️ Pictures of AI generated women ahead, might be unsuitable if you're at work.


Results:


Show Result Images

Emma watson animated Emma watson animated Mona Lisa Cyberpunk Japanese girl in pink sweater Selena Gomez in white gown


Dependencies:

Keywords

FAQs

Package last updated on 18 Jan 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc