tfhpple

    0熱度

    2回答

    我想寫一個非常簡單的iOS應用程序,將解析一個網頁(http://arxiv.org/list/cond-mat/recent)並顯示它的簡化版本。我選擇使用TFHpple來解析這個頁面。我想獲得論文的標題並將其顯示在TableViewController中。紙描述的HTML容器看起來像: <div class="list-title"> <span class="descriptor">Tit

    0熱度

    1回答

    我想知道你是否可以幫助我。我正在嘗試使用TFHpple來解析使用Swift 1.2的HTML數據,但我在處理XPath表達式時遇到問題。我收到以下錯誤: Optional(https://www.rac.co.uk/buying-a-car/car-passport/report/buyer/purchase/?BuyerVrm=yg06dxt) XPath error : Invalid exp

    0熱度

    1回答

    我正在使用hpple庫解析HTML文檔。我想爲視頻網址提取.mp4鏈接和圖像鏈接。 HTML標記看起來是這樣的: <meta property="og:video" content="http://instagram.fbom1-1.fna.fbcdn.net/t50.2886-16/17686957_372561729804133_1618562720464896000_n.mp4"> 代碼

    1熱度

    1回答

    NSData *htmlData=[html dataUsingEncoding:NSUTF8StringEncoding]; TFHpple *htmlParser=[TFHpple hppleWithHTMLData:htmlData]; NSString *[email protected]"//div[@id='postlist']/div"; NSLog(@"%@",thread

    0熱度

    1回答

    我有一個html內容有點像這個。 <body> <div> WINDOW<br/> DOOR<br/> </div> </body> 我想提取div文本內容tag.For此示例中,我想獲得文本WINDOW\nDOOR。 所以我寫了下面的代碼。 NSString *html = ...; TFHpple *parser = [[TFHpple al

    0熱度

    1回答

    我正在和TFHpple一起工作,我想要在一個div標籤中獲得所有的圖片url,圖片的數量可能非常大,所以它需要動態變化。下面是HTML <div id="images" class="content"> <div class="galleria"> <img data-thumb="https://s3.amazonaws.com/nakedapartments/images/786

    0熱度

    2回答

    我解析鏈接http://feedproxy.google.com/~r/NDTV-Tech/~3/YNW1kE-FDv0/story01.htm以從「HeadContent_FullstoryCtrl_fulldetails」HTML標記中獲取內容。我使用TFHpple並使用// * [@ id ='HeadContent_FullstoryCtrl_fulldetails']將xpath解析器指

    0熱度

    1回答

    我試圖用TFHpple刮網頁,但我不知道 searchWithXPathQuery 語法 我需要得到的標題,描述和從任意網頁圖像的列表, 的代碼目前類似於 NSData * data = [NSData dataWithContentsOfURL:[NSURL URLWithString:@"http://www.google.com"]]; TFHpple * doc = [[TFHp

    0熱度

    1回答

    我正在使用它的API製作團隊項目的原生iOS應用程序。 API有三種主要方法:獲取用戶的個人資料信息,他的日記和證書表。 Last方法返回給我JSON數據與表的HTML代碼。它看起來像這樣 {"html":"<table class=\"table term-marks\" cellspacing=\"0\" cellspadding=\"0\"> <thead> <tr> <td>\u041f\

    1熱度

    2回答

    我使用TFHpple一些麻煩,第一個層次,所以這裏是: 我想解析以下行: <div class=\"head\" style=\"height: 69.89px; line-height: 69.89px;\"> <div class=\"cell editable\" style=\"width: 135px;\"contenteditable=\"true\"> <p>&