I've been using the PHP Simple HTML DOM parser to do a web page scrape.
For example, using a known genetic variant code, eg "rs4343" I would obtain a product page from this link:
to obtain a reagent product code I would use regex (eg '/C_[\S]+/'; ) to locate the item, in this case "C__11942562_20" within the HTML
but as a result of a change in the web page which now uses javascript the scrape no longer works.
I've tried using the cURL php command but this also failed for the same reason as the parser.
Using Firefox I identified the API https://www.thermofisher.com/order/genome-database/api/v2/search) and method (POST), the minimum viable header and the json parameter.
Presumably this will work with cURL but is there any easier way using php?
I understand that php would need to create an instance of emulating a javascript enabled browser in order to render the result.
I'm speculating here but is it possible to use the client side (browser) to do this in the background - perhaps in an invisible frame?