DMax
Гуру форума
- Регистрация
- 11 Июн 2014
- Сообщения
- 252
- Реакции
- 54
- Автор темы
- #1
Здравствуйте друзья, подскажите пожалуйста.
FeedGator импортирует статью, в статьи есть ссылки в тегах, как к этим ссылкам добавить например партнерский код?
Например имеем ссылку: http_://ya.ru как добавить в конец этой ссылки /?id123456 и для отдельно взятой ленты...
В FeedGator есть парсер html и регулярные выражения, как ими пользоваться?
Простой фильтр текста:
2 пункта я понял принцип работы, удаление текста, и замена.
а вот третий не понял
Regex text replacement
List of regular expressions to be applied to the text. Must be paired with their replacements in the following format: regex=replace[newline/return]. This will also be applied to the article title. Take care creating your regex - test carefully before deploying
Example:
/[0-9]/===nought to nine
/(Feed).*?(tor)/===$1Alliga$2
Вот вытяжки с фильтра html
Strip HTML Tag List
title:
Comma separated list of HTML tags. Can be used to allow only certain HTML tags (whitelist) or to remove certain HTML tags (blacklist). To use as whitelist, prepend list with a +. Note: tag stripping does not affect the HTML contained within the tag.
Examples
1) +a,br,div id=test,p class=up (only allows a, br, div id=test and p class=up)
2) a,p (allows all tags except a and p).
If you wish to strip all HTML tags leave this list blank and set 'Strip All Tags' above.
Specific HTML Filter
title:
Comma separated list of HTML tags specified by attribute. Can be whitelist or blacklist (mutually exclusive). If disallowed, a tag is removed AS WELL AS ALL CHILD HTML.
Examples
1) +a id=total,a class=this class (keeps only a tags with id=total and class=this class)
2) a rel=up,div id=top (removes a tags with rel=up and div tags with id=top)
И такой еще вопрос, у кого есть перевод, очень нужен, некоторые функции понять не могу и перевод кривой...
Очень надеюсь на помощь знатоков, сам просто не пойму...
Заранее спасибо!
FeedGator импортирует статью, в статьи есть ссылки в тегах, как к этим ссылкам добавить например партнерский код?
Например имеем ссылку: http_://ya.ru как добавить в конец этой ссылки /?id123456 и для отдельно взятой ленты...
В FeedGator есть парсер html и регулярные выражения, как ими пользоваться?
Простой фильтр текста:
2 пункта я понял принцип работы, удаление текста, и замена.
а вот третий не понял
Regex text replacement
List of regular expressions to be applied to the text. Must be paired with their replacements in the following format: regex=replace[newline/return]. This will also be applied to the article title. Take care creating your regex - test carefully before deploying
Example:
/[0-9]/===nought to nine
/(Feed).*?(tor)/===$1Alliga$2
Вот вытяжки с фильтра html
Strip HTML Tag List
title:
Comma separated list of HTML tags. Can be used to allow only certain HTML tags (whitelist) or to remove certain HTML tags (blacklist). To use as whitelist, prepend list with a +. Note: tag stripping does not affect the HTML contained within the tag.
Examples
1) +a,br,div id=test,p class=up (only allows a, br, div id=test and p class=up)
2) a,p (allows all tags except a and p).
If you wish to strip all HTML tags leave this list blank and set 'Strip All Tags' above.
Specific HTML Filter
title:
Comma separated list of HTML tags specified by attribute. Can be whitelist or blacklist (mutually exclusive). If disallowed, a tag is removed AS WELL AS ALL CHILD HTML.
Examples
1) +a id=total,a class=this class (keeps only a tags with id=total and class=this class)
2) a rel=up,div id=top (removes a tags with rel=up and div tags with id=top)
И такой еще вопрос, у кого есть перевод, очень нужен, некоторые функции понять не могу и перевод кривой...
Очень надеюсь на помощь знатоков, сам просто не пойму...
Заранее спасибо!
Последнее редактирование: