meta data for this page
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
search_engine_ranker:macro_guide [2019-08-14 11:41] – [%first_sentence-<varname>%, %random_sentence-<varname>%] sven | search_engine_ranker:macro_guide [2025-04-01 13:23] (current) – [%ab_body%, %ab_title%] 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}} | ||
===== # | ===== # | ||
Line 55: | Line 56: | ||
You can also use a syntax like (<min lines>,< | You can also use a syntax like (<min lines>,< | ||
Another alternative is to use a directory instead of a a file. Than a random file from that directory is used. | Another alternative is to use a directory instead of a a file. Than a random file from that directory is used. | ||
- | + | \\ | |
- | Example: I like: # | + | Example: I like: # |
- | Output: I like: Devin Ozz and all on this forum who contribute to it. | + | Output: I like: Devin Ozz and all on this forum who contribute to it.\\ |
The macro reads two random names from the file “names.dat” and put a space between them. | The macro reads two random names from the file “names.dat” and put a space between them. | ||
Line 65: | Line 66: | ||
This macro reads the content of a file or URL. | This macro reads the content of a file or URL. | ||
- | Example: Something about myself: # | + | Example: Something about myself: # |
- | Output: | + | Output: |
The macro reads the whole content of the file “about_yourself.dat” and inserts it into the text. | The macro reads the whole content of the file “about_yourself.dat” and inserts it into the text. | ||
Line 84: | Line 85: | ||
|N|Joins the lines with nothing in between.| | |N|Joins the lines with nothing in between.| | ||
- | Example: I read “# | + | Example: I read “# |
- | Output: I read “Welcome to my Forum” and had to smile :) | + | Output: I read “Welcome to my Forum” and had to smile :)\\ |
Assuming the webpage has a title like “Welcome to my Forum” and your // | Assuming the webpage has a title like “Welcome to my Forum” and your // | ||
Line 94: | Line 95: | ||
This macro generates a random nick name with a character length between min length and max length. The first parameter is ignored for now. Just put anything you want for it. | This macro generates a random nick name with a character length between min length and max length. The first parameter is ignored for now. Just put anything you want for it. | ||
- | Example: Hello # | + | Example: Hello # |
- | Output: | + | Output: |
In the example above the macro created a nickname with a length of 8 characters and inserted it in the text. | In the example above the macro created a nickname with a length of 8 characters and inserted it in the text. | ||
Line 106: | Line 107: | ||
# | # | ||
- | Example: My password is: test# | + | Example: My password is: test# |
- | Output: My password is: test3-H | + | Output: My password is: test3-H\\ |
The example above inserted 3 characters according to the used ranges in the macro. | The example above inserted 3 characters according to the used ranges in the macro. | ||
Line 130: | Line 131: | ||
Example: #trans The minute that we are born we begin to die. # | Example: #trans The minute that we are born we begin to die. # | ||
- | 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 // | ||
+ | |||
+ | Optional parameters are: # | ||
+ | Where < | ||
+ | |||
+ | Example: #gpt10 seo software # | ||
+ | Output: | ||
+ | |||
+ | Make sure you sign up at [[https:// | ||
+ | |||
+ | ===== # | ||
+ | |||
+ | This will create a text based on the prompt using the AI model " | ||
+ | You can also use a custom template defined in // | ||
+ | Make sure you have defined your OpenAI API Key before when e.g. adding an article in article manager ones. | ||
+ | |||
+ | Example: # | ||
+ | Output: Humans have managed not to kill themselves as a species (yet).\\ | ||
+ | |||
+ | Example: # | ||
+ | Output: A case study about SEO Software would be very nice.\\ | ||
+ | |||
+ | |||
===== %random-< | ===== %random-< | ||
Line 238: | Line 265: | ||
This is generating a random number between min and max. | This is generating a random number between min and max. | ||
- | Example: I was born on %random-1960-1980%. | + | Example: I was born on %random-1960-1980%.\\ |
- | Output: I was born on 1968. | + | Output: I was born on 1968.\\ |
The example above generated a random number between 1960 and 1980 and finally inserted 1968. | The example above generated a random number between 1960 and 1980 and finally inserted 1968. | ||
Line 247: | Line 274: | ||
This macro is reading a random line from the file and taking the set column (seperated by a , from it. If you use the macro with the same file name but a different column, than that exact line is used and not again a new random line. This makes it possible to e.g. have a file with address data and use the same content that belongs to one address instead of unrelated data. | This macro is reading a random line from the file and taking the set column (seperated by a , from it. If you use the macro with the same file name but a different column, than that exact line is used and not again a new random line. This makes it possible to e.g. have a file with address data and use the same content that belongs to one address instead of unrelated data. | ||
- | Example: I life in %columnspinfile-address_data.dat-1% - %columnspinfile-address_data.dat-3%. | + | Example: I life in %columnspinfile-address_data.dat-1% - %columnspinfile-address_data.dat-3%.\\ |
- | Output: I life in Australia – Amaroo. | + | Output: I life in Australia – Amaroo.\\ |
Lets have a quick look at the file “address_data.dat”: | Lets have a quick look at the file “address_data.dat”: | ||
Line 270: | Line 297: | ||
%spinfolder2% is not keeping the previously used content in mind and %spinfolderdelete% is deleting the file after using it to not use it again. | %spinfolder2% is not keeping the previously used content in mind and %spinfolderdelete% is deleting the file after using it to not use it again. | ||
- | Example: %spinfolder-c: | + | Example: %spinfolder-c: |
- | Output: | + | Output: |
===== %spinfilename-< | ===== %spinfilename-< | ||
Line 284: | Line 311: | ||
As alternative you can also use a directory instead of a a file. Than a random file from that directory is used. | As alternative you can also use a directory instead of a a file. Than a random file from that directory is used. | ||
- | Example: My name is %spinfile-names.dat% %spinfile-lnames.dat%. | + | Example: My name is %spinfile-names.dat% %spinfile-lnames.dat%.\\ |
- | Output: My name is Earl Grey. | + | Output: My name is Earl Grey.\\ |
The example above is using the macro two times but on different files (so it is always using a random line, just when you later use the %spinfile-names.dat or %spinfile-lnames.dat% on the same site it is using the same content). | The example above is using the macro two times but on different files (so it is always using a random line, just when you later use the %spinfile-names.dat or %spinfile-lnames.dat% on the same site it is using the same content). | ||
Line 296: | Line 323: | ||
This is the same as using the # | This is the same as using the # | ||
- | Example: %file-c: | + | Example: %file-c: |
- | Output: | + | Output: |
===== %keyword% ===== | ===== %keyword% ===== | ||
Line 303: | Line 330: | ||
This will insert a random keyword that you have defined in your project into the text. Please don't use %keywords% (note the s) as that would insert all keywords into the text and not just one. | This will insert a random keyword that you have defined in your project into the text. Please don't use %keywords% (note the s) as that would insert all keywords into the text and not just one. | ||
- | Example: My site is all about %keyword% and %keyword% | + | Example: My site is all about %keyword% and %keyword%\\ |
- | Output: My site is all about division and joy . | + | Output: My site is all about division and joy .\\ |
The example above is taking two times a random keyword (in this case joy and division) from your project and inserts it. | The example above is taking two times a random keyword (in this case joy and division) from your project and inserts it. | ||
Line 314: | Line 341: | ||
This macro would insert not a random keyword but take the exact order from the project setting. %keyword1% is taking the first defined keyword, %keyword2% the second and so on. | This macro would insert not a random keyword but take the exact order from the project setting. %keyword1% is taking the first defined keyword, %keyword2% the second and so on. | ||
- | Example: My site is all about %keyword1% and %keyword2% | + | Example: My site is all about %keyword1% and %keyword2%\\ |
- | Output: My site is all about joy and divistion. | + | Output: My site is all about joy and divistion.\\ |
Assuming you have “joy, division, music, ...“ defined in your project as keywords you would get the above output as it takes %keyword1% which is joy and %keyword2% which is division. | Assuming you have “joy, division, music, ...“ defined in your project as keywords you would get the above output as it takes %keyword1% which is joy and %keyword2% which is division. | ||
Line 323: | Line 350: | ||
This is replaced with the URL that the program “clicked” to get to the current page. It can be seen as a referrer page used in HTML headers e.g. to indicate where the User came from. | This is replaced with the URL that the program “clicked” to get to the current page. It can be seen as a referrer page used in HTML headers e.g. to indicate where the User came from. | ||
- | Example: I clicked on a link from %source_url% and came here. | + | Example: I clicked on a link from %source_url% and came here.\\ |
- | Output: I clicked on http:// | + | Output: I clicked on %%http:// |
- | If the current URL is now http:// | + | If the current URL is now %%https:// |
Line 333: | Line 360: | ||
This is replaced with the current URL the program is on. | This is replaced with the current URL the program is on. | ||
- | Example: I clicked on a link from %source_url% and now I am on %targeturl%. | + | Example: I clicked on a link from %source_url% and now I am on %targeturl%.\\ |
- | Output: I clicked on http:// | + | Output: I clicked on %%https:// |
This example uses the previous %source_url% macro as well to demonstrate what the content of the macros might be. | This example uses the previous %source_url% macro as well to demonstrate what the content of the macros might be. | ||
Line 342: | Line 369: | ||
This macro inserts the full domain of the site we submit to. | This macro inserts the full domain of the site we submit to. | ||
- | Example: Nice to be on % targetsubdomain%. | + | Example: Nice to be on % targetsubdomain%.\\ |
- | Output: | + | Output: |
===== %targetdomain% ===== | ===== %targetdomain% ===== | ||
Line 349: | Line 376: | ||
This macro will insert the main domain without the suddomain as in the macro above. | This macro will insert the main domain without the suddomain as in the macro above. | ||
- | Example: Nice to be on % targetdomain% | + | Example: Nice to be on % targetdomain%\\ |
- | Output: | + | Output: |
===== %targethost% ===== | ===== %targethost% ===== | ||
Line 356: | Line 383: | ||
This macro will insert the host together with http:// or https:// into the text. | This macro will insert the host together with http:// or https:// into the text. | ||
- | Example: Now the whole site %targethost% is great. | + | Example: Now the whole site %targethost% is great.\\ |
- | Output: Now the whole site http:// | + | Output: Now the whole site %%https:// |
===== %targetpath% ===== | ===== %targetpath% ===== | ||
Line 364: | Line 391: | ||
This macro is just taking the path from the URL the program is on. | This macro is just taking the path from the URL the program is on. | ||
- | Example: I am surfing on %targethost%%targetpath%. | + | Example: I am surfing on %targethost%%%targetpath%%%.\\ |
- | Output: I am surfing on http:// | + | Output: I am surfing on %%https:// |
In this sample we used two macros as this macro alone is not making much sense in most cases. | In this sample we used two macros as this macro alone is not making much sense in most cases. | ||
Line 374: | Line 400: | ||
Also note that if there is no parameter used for the URL it is left empty. | Also note that if there is no parameter used for the URL it is left empty. | ||
- | Example: I am surfing on %targethost% %targetpath% %targetparameters%. | + | Example: I am surfing on %targethost%%%targetpath%%%targetparameters%.\\ |
- | Output: I am surfing on http:// | + | Output: I am surfing on %%https:// |
In this case we used all tree macros from above. | In this case we used all tree macros from above. | ||
Line 388: | Line 414: | ||
This is replaced with the domain of your URL that you want to submit. | This is replaced with the domain of your URL that you want to submit. | ||
- | Example: I am working a lot on my site at %url_domain% lately. | + | Example: I am working a lot on my site at %url_domain% lately.\\ |
- | Output: I am working a lot on my site at gsa-online.de lately. | + | Output: I am working a lot on my site at gsa-online.de lately.\\ |
===== %url_path% ===== | ===== %url_path% ===== | ||
Line 409: | Line 435: | ||
This is generating a random email address with a correct syntax and an existing domain. The program tries to reuse the value used from “names.dat” (random names) to generate an email that looks related to your name. | This is generating a random email address with a correct syntax and an existing domain. The program tries to reuse the value used from “names.dat” (random names) to generate an email that looks related to your name. | ||
- | Example: My email is %random_email%. | + | Example: My email is %random_email%.\\ |
- | Output: My email is blah@hotmail.com. | + | Output: My email is blah@hotmail.com.\\ |
===== %emailuser% ===== | ===== %emailuser% ===== | ||
Line 416: | Line 442: | ||
This macro will insert the content of an email that you see before the @ sign. | This macro will insert the content of an email that you see before the @ sign. | ||
- | Example: My email is %random_email% so the thing before the @ is %emailuser%. | + | Example: My email is %random_email% so the thing before the @ is %emailuser%.\\ |
- | Output: My email is blah@hotmail.com so the thing before the @ is blah. | + | Output: My email is blah@hotmail.com so the thing before the @ is blah.\\ |
The example above might not make a lot sense when using in your project content but it might be required for scripting things together. | The example above might not make a lot sense when using in your project content but it might be required for scripting things together. | ||
Line 425: | Line 451: | ||
This macro will insert the content of an email that you see after the @ sign. | This macro will insert the content of an email that you see after the @ sign. | ||
- | Example: My email is %random_email% so the thing after the @ is %emailhost%. | + | Example: My email is %random_email% so the thing after the @ is %emailhost%.\\ |
- | Output: My email is blah@hotmail.com so the thing before the @ is hotmail.com. | + | Output: My email is blah@hotmail.com so the thing before the @ is hotmail.com.\\ |
Again this example might not make much sense when using in your project content but it might be required for scripting things together. | Again this example might not make much sense when using in your project content but it might be required for scripting things together. | ||
Line 434: | Line 460: | ||
This generates a random name (first name only) and would be the same as when using the macro %spinfile-names.dat%. | This generates a random name (first name only) and would be the same as when using the macro %spinfile-names.dat%. | ||
- | Example: My name is %name%. | + | Example: My name is %name%.\\ |
- | Output: My name is Earl. | + | Output: My name is Earl.\\ |
===== %website%, %url% ===== | ===== %website%, %url% ===== | ||
Line 441: | Line 467: | ||
This will insert the URL you are trying to submit. | This will insert the URL you are trying to submit. | ||
- | Example: <a href=”%url%”> | + | Example: <a href="%url%"> |
- | Output: | + | Output: |
- | Assuming that the URL is defined as http:// | + | Assuming that the URL is defined as %%http:// |
===== %blogtitle%, | ===== %blogtitle%, | ||
Line 450: | Line 476: | ||
The title of the current URL you are about to submit to (everything between html tag < | The title of the current URL you are about to submit to (everything between html tag < | ||
- | Example: Wow “%blogtitle%” is indeed an interesting topic. | + | Example: Wow “%blogtitle%” is indeed an interesting topic.\\ |
- | Output: Wow “How to do things.” is indeed an interesting topic. | + | Output: Wow “How to do things.” is indeed an interesting topic.\\ |
Assuming the website you submit to has < | Assuming the website you submit to has < | ||
Line 459: | Line 485: | ||
A random meta keyword from the site you are submitting to. | A random meta keyword from the site you are submitting to. | ||
- | Example: Nice to see someone writing about %meta_keyword%. | + | Example: Nice to see someone writing about %meta_keyword%.\\ |
- | Output: | + | Output: |
Assuming that the website you submit to has: | Assuming that the website you submit to has: | ||
Line 472: | Line 498: | ||
This is used for image comment engines only and will have the image title in it (or “this image” if not found). | This is used for image comment engines only and will have the image title in it (or “this image” if not found). | ||
- | Example: Very nice image. I think “%image_title%” is the best of all. | + | Example: Very nice image. I think “%image_title%” is the best of all.\\ |
- | Output: | + | Output: |
Assuming that the image you want to place a comment on is called “Sunset in Rostock” you would get the above content. | Assuming that the image you want to place a comment on is called “Sunset in Rostock” you would get the above content. | ||
Line 482: | Line 508: | ||
This will insert a random URL from your project setting. The difference between %url% is that it is purely random and not saved during submission. This makes it possible to insert not only one URL in an article, but also another one from your project. | This will insert a random URL from your project setting. The difference between %url% is that it is purely random and not saved during submission. This makes it possible to insert not only one URL in an article, but also another one from your project. | ||
- | 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/ |
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 555: | Line 581: | ||
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-< | ||
+ | |||
+ | This will get return the full http header (including GET/Post reply code) or just a specific one if defined along with the macro. | ||
+ | < | ||
+ | [last_used_user_agent] | ||
+ | type=extract | ||
+ | input=%http-header-user-agent% | ||
+ | </ | ||
+ | < | ||
+ | [last_reply_code] | ||
+ | type=extract | ||
+ | input=%http-header% | ||
+ | front1=HTTP/ | ||
+ | back=" " | ||
+ | </ | ||
===== %datetime-< | ===== %datetime-< | ||
Line 612: | Line 654: | ||
This will insert the content of a file encoded in base64 and also adds the rest required to use this for DATA URI SCHEME. | This will insert the content of a file encoded in base64 and also adds the rest required to use this for DATA URI SCHEME. | ||
- | Example: <img src=”%data_url-c: | + | Example: <img src=”%data_url-c: |
- | Output: | + | Output: |
===== %spinfolder_data_url-< | ===== %spinfolder_data_url-< | ||
Line 654: | Line 696: | ||
Another possible syntax is **%related_url_link[ignore=domain1.com|url2.com|otherpart]%** | Another possible syntax is **%related_url_link[ignore=domain1.com|url2.com|otherpart]%** | ||
- | ===== %ab_body%, %ab_title% ===== | ||
- | |||
- | This uses the [[http:// | ||
- | |||
- | Please note that the last chosen category from GUI is used to pull content. | ||
===== %project_name% ===== | ===== %project_name% ===== | ||
Line 667: | Line 704: | ||
The macros %article%, %article_title% and %article_summary% will all corrolate to one article in project' | The macros %article%, %article_title% and %article_summary% will all corrolate to one article in project' | ||
+ | |||
+ | ===== %domain_as_name%, | ||
+ | |||
+ | The macro will generate a friendly name from the domain like **gsa-online.de** becomes **Gsa Online** | ||
+ |