1.0.11 • Published 4 months ago

scrapegen v1.0.11

Weekly downloads
-
License
MIT
Repository
github
Last release
4 months ago

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:

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

Dependencies:

1.0.9

4 months ago

1.0.8

4 months ago

1.0.11

4 months ago

1.0.10

4 months ago

1.0.76

1 year ago

1.0.75

1 year ago

1.0.74

1 year ago

1.0.73

1 year ago

1.0.72

1 year ago

1.0.71

1 year ago

1.0.7

1 year ago

1.0.6

1 year ago

1.0.5

1 year ago

1.0.4

1 year ago

1.0.3

1 year ago

1.0.2

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago