TFhpple에서 어떻게 링크를 파싱합니까? 내 코드는 빈 배열을 반환합니다.TFHpple 파싱 링크
NSString *link2=[NSString stringWithFormat:@"/html/body/table/tr[%d]/td[1]/a",i+2];
NSArray *linkedNames = [xpathParser searchWithXPathQuery:link2];
NSLog(@"%@", linkedNames);
정보에 대한 soure 코드는 다음과 같습니다
<td style="font-size: 12.0pt; color: black; font-weight: 400; text-decoration: none; text-underline-style: none; font-family: Arial Narrow; font-style: normal; text-align: general; vertical-align: bottom; white-space: nowrap; border-left: medium none; border-right: 1.0pt solid windowtext; border-top: medium none; border-bottom: 1.0pt solid windowtext; padding-left: 1px; padding-right: 1px; padding-top: 1px; background: #EAF1DD" width="327">
<a href="race_announcements/12.22.12RA.pdf">Pat Harty Memorial</a></td>
는 어떻게 "튼튼한 기념 팻"문자열을 액세스합니까?
내가 pdf 파일을 얻으려고 노력하고 있지 않다이다. 링크는 http://www.nhara.org/scored_races-2013.htm입니다. – user1883873