파싱 데이터를 가져오니 이런식으로 다 깨져버림
어떻게 최대한 원상복구 시킨상태
$url = "http://storefarm.naver.com/amosedu/premiumreview/list?page.page=2&premiumReviewSortType=RECENT&productCategoryId=&remoteEvaluationGradeType=&remotePurchaseReviewContentType="</span>;</div><br><div>$ch <span style="color: #f92672;">= curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_COOKIESESSION, true);
curl_setopt($ch, CURLOPT_AUTOREFERER , true);
curl_setopt($ch, CURLOPT_HTTPAUTH, CURLAUTH_BASIC);
$output = curl_exec($ch);
$info = curl_getinfo($ch);
curl_close($ch);
$output = str_replace("\\t", "", $output);
$output = str_replace("\\n", "", $output);
$output = str_replace("\\", "", $output);
$output = str_replace("'","",$output);
$output = str_replace("\"","", $output );
echo $output;
코드 전문
저기서 넘버값을 가져와야하는데
도저히 방법이 안떠오름,
어케 해야함
뷰티풀숲 안 쓰고 개노가다하네 ㅋㅋ
아니 PHP ㅋㅋ
?? 뷰티풀숲 ?? 형 진짜 자세히 알려줘 나 그거 필요한듯
아냐 파이썬인 줄 알고 딴 얘기함 ㅋㅋ
이딴짓을 왜 하는거야? 인덱싱 하는것도 아니고.
일단 regex부터 ㄱ다
왜하긴 하라고 하니까 하는거지 ..
regex 뭔지 자세히 모르겠지만 strpos이나 substr처럼 문자열 파싱메소드같은데 구글링해보니까 대충은 ㅇ라겠는데 사용방법 좆금만 알려줄수있어 ??
에휴... 구글에서 html 파서 또는 html dom 파서 찾아봐 예제만 수두룩하게 나온다.
ㄴ 그것도 멀쩡한 html 긁어와야 쓰는거지 , 가져올때 깨져서 가져와서 tag자체가 작동이 안되는 형식인데 뭥 ㅓ쩌라는건지
ㅋ