![]() |
|
FMX (IOS, Android) HTML Parse - Baskı Önizleme +- Delphi Can (https://www.delphican.com) +-- Forum: Delphi (https://www.delphican.com/forumdisplay.php?fid=3) +--- Forum: Mobil Platform - FireMonkey (FMX) (https://www.delphican.com/forumdisplay.php?fid=7) +--- Konu Başlığı: FMX (IOS, Android) HTML Parse (/showthread.php?tid=4475) Sayfalar:
1
2
|
Cvp: FMX (IOS, Android) HTML Parse - pro_imaj - 04-03-2020 Çok değerli yardımlarınız ve paylaşımlarınız için teşekkürler @Fesih ARSLAN @SimaWB Sorunu tam anlamıyla çözmüş oldum. İyi çalışmalar. Cvp: FMX (IOS, Android) HTML Parse - Jakarta2 - 18-05-2022 Selamlar; Bu nasıl bir java yapısıdır? data altındaki name,type, decription kısımlarına ulaşabiliyorum. Picture altındaki link kısmına nasıl ulaşabilirim? (Data: ['nın altında başka köşeli parantez yok.) procedure TForm1.Button3Click(Sender: TObject);
var
Jvalue : TJSONValue;
JSonObject:TJSonObject;
JSonValue,jsonaltvalue:TJSonValue;
jsonArray: TJSONArray;
i,ks,ts :integer;
begin
RESTRequest1.Method := rmGET;
RESTRequest1.Execute;
JValue := TJSONObject.parseJSONValue(RESTResponse1.Content);
RichEdit1.Text := RESTResponse1.JSONText;
JSonObject := TJSonObject.Create;
JsonValue:=JSonObject.ParseJSONValue(RichEdit1.Text);
JsonValue:=(JsonValue as TJSONObject).Get('data').JSONValue;
jsonarray := Jsonvalue as TJSONArray;
ks := jsonarray.Count;
for i := 0 to ks - 1 do
begin
if (JSONValue is TJSONArray) then
vname := ((JSONValue as TJSONArray).Items[i] as TJSonObject).Get('name').JSONValue.Value;
vlink := ((JSONValue as TJSONArray).Items[i] as TJSonObject).Get('link').JSONValue.Value;
jsonaltvalue := ((JSONValue as TJSONArray).Items[i] as TJSonObject).Get('pictures').JsonValue;
memo1.Lines.Add(vname + ' ' + vlink + ' ' + vresim);
end;
JSonObject.Free;
end;
{ "total": 2, "page": 1, "per_page": 25, "paging": { "next": null, "previous": null, "first": "\/me\/videos?name=&description=&page=1", "last": "\/me\/videos?name=&description=&page=1" }, "data": [ { "uri": "\/videos\/710711272", "name": "Asilfilm.mp4", "description": null, "type": "video", "link": "https:\/\/vimeo.com\/710711272", "player_embed_url": "https:\/\/player.vimeo.com\/video\/710711272?h=d9febc0ad6", "duration": 290, "width": 854, "language": null, "height": 480, "embed": { "html": "<iframe src=\"https:\/\/player.vimeo.com\/video\/710711272?h=d9febc0ad6&badge=0&autopause=0&player_id=0&app_id=245433\" width=\"854\" height=\"480\" frameborder=\"0\" allow=\"autoplay; fullscreen; picture-in-picture\" allowfullscreen title=\"Asilfilm.mp4\"><\/iframe>", "badges": { "hdr": false, "live": { "streaming": false, "archived": false }, "staff_pick": { "normal": false, "best_of_the_month": false, "best_of_the_year": false, "premiere": false }, "vod": false, "weekend_challenge": false }, "buttons": { "watchlater": true, "share": true, "embed": true, "hd": false, "fullscreen": true, "scaling": true, "like": true }, "logos": { "vimeo": true, "custom": { "active": false, "url": null, "link": null, "sticky": false } }, "title": { "name": "user", "owner": "user", "portrait": "user" }, "end_screen": [ ], "playbar": true, "volume": true, "color": "00adef", "event_schedule": true, "uri": null, "speed": true }, "created_time": "2022-05-17T09:08:26+00:00", "modified_time": "2022-05-17T09:20:24+00:00", "release_time": "2022-05-17T09:08:26+00:00", "content_rating": [ "unrated" ], "content_rating_class": "unrated", "rating_mod_locked": false, "license": null, "privacy": { "view": "anybody", "embed": "public", "download": true, "add": true, "comments": "anybody" }, "pictures": { "uri": "\/videos\/710711272\/pictures\/1433423047", "active": true, "type": "custom", "base_link": "https:\/\/i.vimeocdn.com\/video\/1433423047-ebed338e46abfde3a6262e2c56ba3babb6034e4d1ad6871455b1d10d51941bb4-d", "sizes": [ { "width": 100, "height": 75, "link": "https:\/\/i.vimeocdn.com\/video\/1433423047-ebed338e46abfde3a6262e2c56ba3babb6034e4d1ad6871455b1d10d51941bb4-d_100x75?r=pad", "link_with_play_button": "https:\/\/i.vimeocdn.com\/filter\/overlay?src0=https%3A%2F%2Fi.vimeocdn.com%2Fvideo%2F1433423047-ebed338e46abfde3a6262e2c56ba3babb6034e4d1ad6871455b1d10d51941bb4-d_100x75&src1=http%3A%2F%2Ff.vimeocdn.com%2Fp%2Fimages%2Fcrawler_play.png" }, { "width": 200, "height": 150, "link": "https:\/\/i.vimeocdn.com\/video\/1433423047-ebed338e46abfde3a6262e2c56ba3babb6034e4d1ad6871455b1d10d51941bb4-d_200x150?r=pad", "link_with_play_button": "https:\/\/i.vimeocdn.com\/filter\/overlay?src0=https%3A%2F%2Fi.vimeocdn.com%2Fvideo%2F1433423047-ebed338e46abfde3a6262e2c56ba3babb6034e4d1ad6871455b1d10d51941bb4-d_200x150&src1=http%3A%2F%2Ff.vimeocdn.com%2Fp%2Fimages%2Fcrawler_play.png" }, { "width": 295, "height": 166, "link": "https:\/\/i.vimeocdn.com\/video\/1433423047-ebed338e46abfde3a6262e2c56ba3babb6034e4d1ad6871455b1d10d51941bb4-d_295x166?r=pad", "link_with_play_button": "https:\/\/i.vimeocdn.com\/filter\/overlay?src0=https%3A%2F%2Fi.vimeocdn.com%2Fvideo%2F1433423047-ebed338e46abfde3a6262e2c56ba3babb6034e4d1ad6871455b1d10d51941bb4-d_295x166&src1=http%3A%2F%2Ff.vimeocdn.com%2Fp%2Fimages%2Fcrawler_play.png" }, { "width": 640, "height": 360, "link": "https:\/\/i.vimeocdn.com\/video\/1433423047-ebed338e46abfde3a6262e2c56ba3babb6034e4d1ad6871455b1d10d51941bb4-d_640x360?r=pad", "link_with_play_button": "https:\/\/i.vimeocdn.com\/filter\/overlay?src0=https%3A%2F%2Fi.vimeocdn.com%2Fvideo%2F1433423047-ebed338e46abfde3a6262e2c56ba3babb6034e4d1ad6871455b1d10d51941bb4-d_640x360&src1=http%3A%2F%2Ff.vimeocdn.com%2Fp%2Fimages%2Fcrawler_play.png" }, { "width": 960, "height": 540, "link": "https:\/\/i.vimeocdn.com\/video\/1433423047-ebed338e46abfde3a6262e2c56ba3babb6034e4d1ad6871455b1d10d51941bb4-d_960x540?r=pad", "link_with_play_button": "https:\/\/i.vimeocdn.com\/filter\/overlay?src0=https%3A%2F%2Fi.vimeocdn.com%2Fvideo%2F1433423047-ebed338e46abfde3a6262e2c56ba3babb6034e4d1ad6871455b1d10d51941bb4-d_960x540&src1=http%3A%2F%2Ff.vimeocdn.com%2Fp%2Fimages%2Fcrawler_play.png" }, { "width": 1280, "height": 720, "link": "https:\/\/i.vimeocdn.com\/video\/1433423047-ebed338e46abfde3a6262e2c56ba3babb6034e4d1ad6871455b1d10d51941bb4-d_1280x720?r=pad", Cvp: FMX (IOS, Android) HTML Parse - RAD Coder - 21-05-2022 @Jakarta2, Pictures, json object olduğu için value değerini alın ve jsonobject'e dönüştürün. Daha sonra jsonPictures.Get şeklinde ulaşabilirsiniz. |