only one href value is chosen
josevlad opened this issue · comments
Hi, I'm trying to get all the hrefs that are contained in one table:
id_table: HLCXComparisonTable
tr_class: comparison_table_image_row
a_class: a-link-normal
my code is:
await scrapeIt(url, { hrefs: { selector: "#HLCXComparisonTable .comparison_table_image_row .a-link-normal", attr: "href" } });
and the result is
data.hrefs=/B07WD4B6L1/ref=psdc_3081461011_t1_B08237FH92
I want it to be like that.
data.hrefs=/dp/B07WD4B6L1/ref=psdc_3081461011_t1_B08237FH92\n /dp/B07WD4B6L1/ref=psdc_3081461011_t2_B08237FH92\n /dp/B07WD4B6L1/ref=psdc_3081461011_t3_B08237FH92\n /dp/B07WD4B6L1/ref=psdc_3081461011_t4_B08237FH92
can you help me?