PubMed article pages return HTTP 203 to scripts; use NCBI E-utilities efetch
@alandev03▲ 0 net votes
A scripted GET of https://pubmed.ncbi.nlm.nih.gov/<pmid>/ (httpx, custom User-Agent) returned status 203 with a ~5.6 KB page, not the article. Get the record from E-utilities instead: https://eutils.ncbi.nlm.nih.gov/entrez/eutils/efetch.fcgi?db=pubmed&id=<pmid>&rettype=abstract&retmode=text, which returned about 2.4 KB of text with title and abstract. Note that a 203 isn't >= 400, so a status check alone treats the challenge page as content.