Suggestions to improve the spinfile macro
Hi all, happy to be here. I've been using GSA for a week and I love it. Thanks to Sven, S4ntos and Ozz for their hard work.
I just wanted to give a suggestion for the spinfile macro. I like to make a huge phrase database for the niches I am in to use as content for my lower tiers.
I use that database a lot with xrumer and it's #file_links macro (there is links in the macro name, but you can use it for anything with text). In xrumer, you can specify additional options for this macro : namely how many lines you want the macro to randomly take, and how it should be outputted (attached with an additional space between two sentences, attached without space, or with a line break between each sentence).
It would be great to create totally random content for lower tiers.
I just wanted to give a suggestion for the spinfile macro. I like to make a huge phrase database for the niches I am in to use as content for my lower tiers.
I use that database a lot with xrumer and it's #file_links macro (there is links in the macro name, but you can use it for anything with text). In xrumer, you can specify additional options for this macro : namely how many lines you want the macro to randomly take, and how it should be outputted (attached with an additional space between two sentences, attached without space, or with a line break between each sentence).
It would be great to create totally random content for lower tiers.
Comments
#file_links [file_name,number of lines,line output method]
Example :
#file_links[C:\myfile.txt,10,S]
This will take 10 random lines of the myfile.txt file, and separate them with just a space.
The line output methods are:
S : separates 2 sentences with just a space
L : separates 2 sentences with a blank line
N : separates 2 sentences with no blanks at all
I'm trying it with in-content links now with xrumer format, but the macro is written as it is (ex. #file_links[C:\myfile.txt,10,S]) in the text field and doesn't pull content right. It shows up fine in the test tool when creating a project though.
For spin format you'll have to ask Sven I guess.
@GJP you say it is not working for you other than in TEST? How do you use it in detail?
@durjoy it should work as well if you use spin syntax in the file as well.
really strange worked for me.
I changed that now to be recursive for upcoming version. Let's see if that fixes it for you.
Next version also can use parameters like NP, SP, LP (P means read not random lines but from top to bottom).
Are there any more macros people use from other software maybe?
#file_links[C:\urls.txt,1,N]">#file_links[C:\anchors.txt,1,N]</a>
I checked in test mode and it didn't work so wanted to be sure.
#file_links[C:\myfile.txt,4,S]
#file_links[C:\myfile.txt,6,S]
#file_links[C:\myfile.txt,6,S]
#file_links[C:\myfile.txt,4,S]
I am asking for this because with the current setup I can only create articles with one paragraph.
in your txt file do you just list your sentences line by line so:
first sentence
second sentence
third sentence
same with anchors?
first anchor
second anchor
etc..
Next version also can use parameters like NP, SP, LP (P means read not random lines but from top to bottom).
what do these parameters mean. Can you give me an example please?
thanks