![]() |
![]() |
![]()
Post
#1
|
|
Grupa: Zarejestrowani Postów: 131 Pomógł: 1 Dołączył: 2.11.2014 Ostrzeżenie: (0%) ![]() ![]() |
czesc,
Podpowiecie, jak zrobic cos takiego by z podanego bloga na blogger.com wczytywac automatycznie ostatni dodany tam post i wyswietlac go u siebie na stronie? dzieki wielkie, Robert |
|
|
![]() |
![]()
Post
#2
|
|
Grupa: Zarejestrowani Postów: 131 Pomógł: 1 Dołączył: 2.11.2014 Ostrzeżenie: (0%) ![]() ![]() |
instalacja 2 min trwala, wklejenie ichniego przykladu z demo.php i wyglada ze dziala, ... teraz tylko musze ogarna jak to dziala, ale to juz chyba luzik, bede parsowal HTMLe niebawem (IMG:style_emoticons/default/smile.gif)
ok... juz troche zmeczylem i nawet costam dziala, dla zainteresowanych moje obecne dzialajace proby: $url=" jakis url strony"; $result = get_web_page( $url ); //funkcja do pobrania z http://stackoverflow.com/questions/1495386...tent-using-curl $page = $result['content']; phpQuery::newDocument($page); //$first_post_element = pq('div.post-outer'); is OK //$first_post_element = pq('div.post'); is OK //$first_post_element = pq('div.post-header'); //ok //$first_post_element = pq('div.post-body');// ok $first_post_element = pq('h3.post-title'); //dziala ok $first_post = $first_post_element->html(); echo "first post:" . $first_post . '<br/>'; jutro powienem ogarnac jak dostac sie do odpowiedniego elementu/elementow HTMLa czad! dzieki raz jeszcze! |
|
|
![]() ![]() |
![]() |
Aktualny czas: 7.10.2025 - 08:05 |