Data not in the same row... I'd appreciate your help and advice

The number of reply at this site was not in the same row as the corresponding title. I would appreciate your help to fix the problem.

Here's the sitemap:

{"_id":"mitbbs","startUrl":["http://mitbbs.com/bbsdoc/Automobile.html"],"selectors":[{"id":"title","type":"SelectorLink","parentSelectors":["_root","page"],"selector":"strong a","multiple":true,"delay":0},{"id":"page","type":"SelectorLink","parentSelectors":["page"],"selector":"td tr:nth-of-type(1) tr [width='43%'] a:nth-of-type(1)","multiple":false,"delay":0},{"id":"reply","type":"SelectorText","parentSelectors":["_root"],"selector":".taolun_leftright tr:nth-of-type(n+5) td:nth-of-type(4)","multiple":true,"regex":"","delay":0}]}

Hi @Ginger202020

Make an element selector for the table, targeting its rows, then use each indivdual cell.

My example:

{"_id":"mitbbs","startUrl":["http://mitbbs.com/bbsdoc/Automobile.html"],"selectors":[{"id":"title","type":"SelectorLink","parentSelectors":["wrapper"],"selector":"td:nth(1) strong, td:nth(2) strong","multiple":false,"delay":0},{"id":"page","type":"SelectorLink","parentSelectors":["page"],"selector":"td tr:nth-of-type(1) tr [width='43%'] a:nth-of-type(1)","multiple":false,"delay":0},{"id":"reply","type":"SelectorText","parentSelectors":["wrapper"],"selector":"td:nth(3):not(:contains('girlfriend')):not(:contains('njsummer'))","multiple":false,"regex":"","delay":0},{"id":"wrapper","type":"SelectorElement","parentSelectors":["_root"],"selector":".taolun_leftright tbody> tr:not(:contains(\"主题\"))","multiple":true,"delay":0}]}

Hope it helps.

@ViestursWS: It worked! Many thanks for your help!

1 Like