Answer the question
In order to leave comments, you need to log in
How can I parse a third party site without rss?
Good afternoon,
The original site is in yii using angularjs , but it probably doesn't matter.
it is necessary to receive data from a third-party site that does not have an rss feed. How to do it better? Only the thought comes into my head - connect the page through IFRAME and somehow collect the contents of the markup elements (tables) into an array.
Answer the question
In order to leave comments, you need to log in
If there is nothing but HTML markup, then HTMLDomParser will help.
I'll just leave this here.
simple php html dom parser - easy to use, all selectors look like jquery selectors.
Work through objects. Those. parsing a site with this library is not difficult.
https://codepen.io/MaximLensky/pen/RxooXP?editors=1100 like so ... checked with a small amount of text and with a large amount of text
And the prize for the shortest option goes to me https://jsfiddle.net/Vlad_IT/2n68hk3s/
UPD: It can be even shorter https://jsfiddle.net/Vlad_IT/mg79eL8z/
Maybe this is not the best option, but you can give the block itself a border of the desired color, and attach protruding tails with the absolute through pseudo-elements, so the block will stretch and the design will not break.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question