Я написал несколько файлов конфигурации для некоторых крупных форумов.Надеюсь, вы сможете расшифровать и понять, как его анализировать.
Для VBulletin:
enclosed_section=tag:table,attributes:id;threadslist
thread=tag:a,attributes:id;REthread_title_
list_next_page=type:next_page,attributes:anchor_text;>
post=tag:div,attributes:id;REpost_message_
thread_next_page=type:next_page,attributes:anchor_text;>
enclosed_section - это div, содержащий ссылки на все потоки, где вы найдете ссылкукаждая ветка list_next_page - это ссылка на следующую страницу со списком тем. post - это div с текстом сообщения.thread_next_page - это ссылка на следующую страницу темы
Для приглашения:
enclosed_section=tag:table,attributes:id;forum_table
thread=tag:a,attributes:class;topic_title
list_next_page=tag:a,attributes:rel;next,inside_tag_attribute:href
post=tag:div,attributes:class;post entry-content |
thread_next_page=tag:a,attributes:rel;next,inside_tag_attribute:href
post_count_section=tag:td,attributes:class;stats
post_count=tag:li,attributes:,reg_exp:(\d+) Repl