Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
search_engine_ranker:macro_guide [2019-08-14 11:40] – [%first_paragraph-<varname>%] svensearch_engine_ranker:macro_guide [2023-05-07 07:58] (current) – [Spin Syntax explained] sven
Line 41: Line 41:
 Output 3: Sentence 2. Sentence 2. Sentence 1.\\  Output 3: Sentence 2. Sentence 2. Sentence 1.\\ 
  
 +You can also use **nested spin syntax** where you put one spin syntax in another like: {This **{was|is}** wonderful.|Thank{ you| you all|s}}
  
 ===== #file_links[<filename or url>,<number of lines>,<line output>] ===== ===== #file_links[<filename or url>,<number of lines>,<line output>] =====
Line 132: Line 133:
 Output: Die Minute, die wir geboren werden, beginnen wir zu sterben. Output: Die Minute, die wir geboren werden, beginnen wir zu sterben.
  
-The example above is translating the sentence “The minute that we are born we begin to die.” into “Die Minute, die wir geboren werden, beginnen wir zu sterben.” while we submit to a German site like http://www.something-german.de/+The example above is translating the sentence “The minute that we are born we begin to die.” into “Die Minute, die wir geboren werden, beginnen wir zu sterben.” while we submit to a German site like http://www.rostock-schwarz.de/
  
 Another format could be used where you specify the langauge to translate in the macro itself using: Another format could be used where you specify the langauge to translate in the macro itself using:
Line 233: Line 234:
  
 This is just a sample of what spin rewriters might make out of it. This is just a sample of what spin rewriters might make out of it.
 +
 +===== #gpt ... #nogpt =====
 +
 +GPT stands for //**G**enerative **Pr**e-trained **T**ransformer// and will generate text using AI. [[https://en.wikipedia.org/wiki/GPT-3|Read more about GPT3 on Wikipedia]]
 +
 +Optional parameters are: #gpt<length>-<custom_generator_id>
 +Where <length> is the length in words of the generated. Between #gpt and #nogpt you have to supply some keywords that the generated text is about.
 +
 +Example: #gpt10 seo software #nogpt\\ 
 +Output: This is a randomly generated text with content about SEO software.\\
 +
 +Make sure you sign up at [[https://inferkit.com/|https://inferkit.com/]] for an API-KEY. The API Key must have been entered once while in the Article Manager and add a GPT3 generated article.
 +
 +===== #openai[<model>,<prompt or template>,<amount of words>,<keyword>,<temperature>,<language>] =====
 +
 +This will create a text based on the prompt using the AI model "**model**", the temperature "**temperature**" (optional) and **language** (optional).
 +You can also use a custom template defined in //openai.dat// file (Science Article,Case Study,...). If you use just the template, you also need to define the **<amount of words>** and **<keyword>**.
 +Make sure you have defined your OpenAI API Key before when e.g. adding an article in article manager ones.
 +
 +Example: #openai[gpt-3.5-turbo,write a positive sentence about humans.]\\ 
 +Output: Humans have managed not to kill themselves as a species (yet).\\ 
 +
 +Example: #openai[gpt-4,Case Study,10,SEO Software,0.7]\\
 +Output: A case study about SEO Software would be very nice.
 +
 +
  
 ===== %random-<min>-<max>% ===== ===== %random-<min>-<max>% =====
Line 483: Line 510:
  
 Example: My Website is %url% and %random_url% as well as %random_url% Example: My Website is %url% and %random_url% as well as %random_url%
-Output: My Website is http://url1.com and http://url1911.com as well as  http://url23.com+Output: My Website is https://www.gsa-online.de/ and http://www.findsoftware.eu/ as well as http://www.proxy-scraper.com
  
 If you would have used %url% only, you would have three of the same URLs in the output. If you would have used %url% only, you would have three of the same URLs in the output.
Line 544: Line 571:
 //Sample: %random_paragraph-article%// //Sample: %random_paragraph-article%//
  
-===== %first_sentence-<varname>% =====+===== %first_sentence-<varname>%, %random_sentence-<varname>% =====
  
-This will take the content of the the variable and only insert the first sentence. +This will take the content of the the variable and only insert the first or random sentence. 
 You can also use a file, folder or URL as variable to take content from there. You can also use a file, folder or URL as variable to take content from there.
 +
 +//Sample: %random_sentence-article%//
  
 ===== %cookie-<cookie_name>[;<URL>]% ===== ===== %cookie-<cookie_name>[;<URL>]% =====
Line 553: Line 582:
 This will get you the cookie value of the cookie_name. If you leave that URL out, you get the data from the current URL. The path is ignored from the URL. This will get you the cookie value of the cookie_name. If you leave that URL out, you get the data from the current URL. The path is ignored from the URL.
  
 +
 +===== %http-header-<header_name>% or just %http-header% =====
 +
 +This will get return the full http header (including GET/Post reply code) or just a specific one if defined along with the macro.
 +<code>
 +[last_used_user_agent]
 +type=extract
 +input=%http-header-user-agent%
 +</code>
 +<code>
 +[last_reply_code]
 +type=extract
 +input=%http-header%
 +front1=HTTP/1.1|HTTP/1.0
 +back=" "
 +</code>
 ===== %datetime-<format_string>% ===== ===== %datetime-<format_string>% =====