browser. maybe a headless chrome?
this is maybe the best idea , i am trying it now
well it is but it's not applicable to anywhere. like you mentioned swift? isn't that for IOS? I don't think you can do this on a phone.
there uiwebview which opens urls , and then i can take the html body from that uiwebview
also one more thing. don't exceed the threshold if you do so. using a VPN is not going to always help. you have other fingerprints that can identify you as a bot.
but, can you open the uiwebview in the background? a headless chrome is going to run in the background for you.
it seems the best idea is headless chrome , but is it possible to use it in my ios app?
no. and it consumes RAM. usually people use this option on small VPSs so that they don't exceed any threshold. and cache the result for downstream use. like maybe expose it via API to the mobile app. crawling is not as easy as it used to be.
they closed their api
no I meant you have to rent one or more than one VPS and then, use a headless chrome to make the requests. and then cache the result. and then expose that result to your IOS app via your own API.
autotrader.com I presume.
ohh it is not easy )) , i thought parsing would be an easy task))
auttotrader.com
no. and also BTW requests is not a good library for crawling and parsing. there are better ways like this one https://www.crummy.com/software/BeautifulSoup/bs4/doc/ you can google python bs4 tutorials the internet is full of them.
thank you very much for giving the idea of headless chrom , i found an ios headles browser and now everything works
Обсуждают сегодня