This is an old revision of the document!


Advanced Setup

This section will teach you special things you can use to modify content to your needs.

In the file content_search.dat (found in installation folder) you can define where to get what content. By default you have things setup for images, videos, links and articles. Please keep in mind that you might violate other peoples copyright when using there content for your article.

You can later make use of this by using %random_<type>% in your article or wherever you want it. Type can e.g. be image (%random_image%) or video (%random_video%).

A normal usage:

[fotki.com]
url=http://search.fotki.com/?q=%search%
type=image
seperator=<div class="fleft">
content_front=src="
content_back="
title_front=title="
title_back="
result=<img src="%content%" alt="%search%" title="%title% (C) fotki.com" style="max-width:500px;">
replace=-th.;-vi.

This does a search on fotki.com and pulls the found images from it.

A special usage:

[local_images_to_data_url]
type=image
result=<img src="%spinfolder_data_url-c:\some\folder\with\images\%" style="max-width:500px;">

This is simply taking a random image from your defined folder and makes a data URL from it.

VariableDescription
urlURL to get the content from. Use the place holder %search% here if wanted. It is replaced with keyword or anchor text of the project making use of it.
typeDefines the type (can be anything you like and can later be used with %random_type%
seperatorThe separator (notice spell error) that is used in html source to separate the results.
content*, title*, author*The different variables that can be filled. Use *_front and *_back to get the right content.
resultThe actual result that is delivered. You should use the variables here of course.
replaceWill replace things from the content with something else.

In the file user_agents.dat (found in installation folder) you can define what User Agents should be used when downloading or submitting content. A randomly chosen string is taken from that file for the whole submission process to one site.

The file text_captcha_extract.dat (found in installation folder) is used to find the answer in text captcha questions itself.

Format: FRONT1|FRONT2|..|FRONTX|BACK

Example: <label for=“commchallenge_answer”>|Please type the word|below. <strong>(required)</strong>

This will search the downloaded page for the string in FRONT and till take the content found between the last FRONT and first BACK string.

The file calc_replace.dat (found in installation folder) is used to search for certain words in text captcha questions and replace it with numbers or math operators (+, -, *, /).

Format: search=replace Example: one=1

The file charspin.dat is used to take one character of your article and replace it with something that looks the same but is actually a different char.

Format: character|replace with variation 1|variation2|…
Example: Z|&#918;|&Zeta;