Как спарсить кол-во номеров у тиндер ?



  • Нужно спарсить кол-во номеров у Тиндер, "tinder.com", кол-во номеров -"count": тут кол-во,
    Прикладываю весь джейсон ответ. Большое спасибо тем, кто помог )

    [{"id":0,"logo":"/uploads/soft/iPhone_sms-298x300.jpg","name":"Другой","count":97,"cost":3,"all":"310"},{"id":2,"logo":"/uploads/logo/vk.png","name":"Вконтакте","count":0,"cost":18,"all":"310"},{"id":3,"logo":"/uploads/logo/ok.png","name":"Odnoklassniki","count":91,"cost":3,"all":"310"},{"id":5,"logo":"/uploads/logo/vi.png","name":"viber","count":1,"cost":1,"all":"310"},{"id":6,"logo":"/uploads/logo/te.png","name":"telegram","count":20,"cost":3,"all":"310"},{"id":7,"logo":"/uploads/logo/wh.png","name":"whatsapp","count":5,"cost":3,"all":"310"},{"id":8,"logo":"/uploads/logo/wc.png","name":"WeChat","count":308,"cost":1,"all":"310"},{"id":9,"logo":"/uploads/logo/go.png","name":"Google,Youtube, Gmail","count":143,"cost":3,"all":"310"},{"id":10,"logo":"/uploads/logo/yu.png","name":"youla.io","count":21,"cost":1,"all":"310"},{"id":11,"logo":"/uploads/logo/yo.png","name":"Yahoo","count":101,"cost":1,"all":"310"},{"id":12,"logo":"/uploads/logo/mi.png","name":"Microsoft","count":19,"cost":1,"all":"310"},{"id":13,"logo":"/uploads/logo/fb.png","name":"facebook","count":26,"cost":3,"all":"310"},{"id":14,"logo":"/uploads/logo/ra.png","name":"Rambler.ru","count":308,"cost":0,"all":"310"},{"id":15,"logo":"/uploads/logo/ya.png","name":"yandex","count":152,"cost":2,"all":"310"},{"id":16,"logo":"/uploads/logo/in.png","name":"instagram","count":147,"cost":4,"all":"310"},{"id":17,"logo":"/uploads/logo/we0.png","name":"drugvokrug.ru","count":307,"cost":1,"all":"310"},{"id":18,"logo":"/uploads/logo/78.jpg","name":"mamba.ru","count":167,"cost":1,"all":"310"},{"id":19,"logo":"/uploads/logo/qi.png","name":"Qiwi","count":107,"cost":10,"all":"310"},{"id":20,"logo":"/uploads/logo/webmoney.png","name":"WebMoney","count":306,"cost":5,"all":"310"},{"id":21,"logo":"/uploads/logo/fotostrana.png","name":"fotostrana.ru","count":302,"cost":0,"all":"310"},{"id":22,"logo":"/uploads/878.jpg","name":"ld-info.com","count":309,"cost":0,"all":"310"},{"id":23,"logo":"/uploads/logo/tw.png","name":"Twitter","count":13,"cost":1,"all":"310"},{"id":24,"logo":"/uploads/logo/ma.png","name":"Mail.ru","count":27,"cost":1,"all":"310"},{"id":25,"logo":"/uploads/logo/ub.png","name":"Uber","count":32,"cost":1,"all":"310"},{"id":26,"logo":"/uploads/logo/667.jpg","name":"QIP.ru","count":309,"cost":0,"all":"310"},{"id":27,"logo":"/uploads/logo/54.jpg","name":"aol.com","count":61,"cost":1,"all":"310"},{"id":28,"logo":"/uploads/logo/ge.png","name":"Gett","count":165,"cost":1,"all":"310"},{"id":30,"logo":"/uploads/logo/uk0.png","name":"meetme.com","count":302,"cost":1,"all":"310"},{"id":31,"logo":"/uploads/logo/lm.png","name":"Line messenger","count":309,"cost":0.5,"all":"310"},{"id":32,"logo":"/uploads/logo/kp0.png","name":"Tencent QQ","count":309,"cost":0,"all":"310"},{"id":33,"logo":"/uploads/logo/spaces.jpg","name":"spaces.ru","count":165,"cost":0,"all":"310"},{"id":34,"logo":"/uploads/logo/4game.jpg","name":"4game.com","count":309,"cost":0,"all":"310"},{"id":35,"logo":"/uploads/logo/tabor.jpg","name":"tabor.ru","count":210,"cost":0,"all":"310"},{"id":38,"logo":"/uploads/logo/dt0.png","name":"Такси Максим","count":309,"cost":1,"all":"310"},{"id":43,"logo":"/uploads/logo/kt0.png","name":"KakaoTalk","count":255,"cost":1,"all":"310"},{"id":45,"logo":"/uploads/logo/amazon.png","name":"amazon","count":309,"cost":0,"all":"310"},{"id":46,"logo":"/uploads/logo/steam.png","name":"steam","count":167,"cost":1,"all":"310"},{"id":48,"logo":"/uploads/logo/gem4me.png","name":"gem4me.com","count":309,"cost":0,"all":"310"},{"id":49,"logo":"/uploads/logo/LinkedIn_logo_initials.png","name":"linkedin","count":301,"cost":0,"all":"310"},{"id":52,"logo":"/uploads/logo/apple-touch-icon-114x114-precomposed.png","name":"uklon.com.ua","count":309,"cost":1,"all":"310"},{"id":54,"logo":"/uploads/logo/12121233333333.jpg","name":"blablacar.ru","count":303,"cost":1,"all":"310"},{"id":56,"logo":"/uploads/logo/yandex_taxi.png","name":"Яндекс такси","count":209,"cost":2,"all":"310"},{"id":57,"logo":"/uploads/logo/steemit.jpg","name":"steemit.com","count":172,"cost":1,"all":"310"},{"id":61,"logo":"/uploads/logo/unnamed6.png","name":"skype.com","count":309,"cost":0,"all":"310"},{"id":62,"logo":"/uploads/logo/1067416_935xp.png","name":"mvideo.ru","count":309,"cost":1,"all":"310"},{"id":64,"logo":"/uploads/logo/PD_big2.png","name":"prodoctorov.ru","count":309,"cost":3,"all":"310"},{"id":69,"logo":"/uploads/logo/taxify.PNG","name":"taxify","count":298,"cost":1,"all":"310"},{"id":71,"logo":"/uploads/galaxy.mobstudio.jpg","name":"galaxy.mobstudio.ru","count":297,"cost":1,"all":"310"},{"id":74,"logo":"/uploads/logo/airbnb.jpg","name":"www.airbnb.ru","count":170,"cost":2,"all":"310"},{"id":77,"logo":"/uploads/logo/faberlic.jpg","name":"faberlic.com","count":309,"cost":1,"all":"310"},{"id":78,"logo":"/uploads/logo/aliexpress.jpg","name":"ru.aliexpress.com","count":306,"cost":3,"all":"310"},{"id":83,"logo":"/uploads/logo/hotline.ua-02.png","name":"hotline.ua","count":309,"cost":5,"all":"310"},{"id":85,"logo":"/uploads/logo/perekrestok.jpg","name":"my.perekrestok.ru","count":308,"cost":1,"all":"310"},{"id":91,"logo":"/uploads/logo/1200x630bb.jpg","name":"sipnet.ru","count":309,"cost":0,"all":"310"},{"id":92,"logo":"/uploads/logo/175x175bb.jpg","name":"Dukascopy Connect 911","count":171,"cost":1,"all":"310"},{"id":96,"logo":"/uploads/logo/mirtesen.jpg","name":"smart","count":309,"cost":5,"all":"310"},{"id":99,"logo":"/uploads/logo/av.png","name":"Avito+переадресация","count":149,"cost":40,"all":"310"},{"id":103,"logo":"/uploads/logo/bd0.png","name":"OKEY","count":309,"cost":2,"all":"310"},{"id":104,"logo":"/uploads/logo/mat_92729.png","name":"pochtabank.ru","count":306,"cost":1,"all":"310"},{"id":106,"logo":"/uploads/logo/5yhycokka69m2xusdle3.jpeg","name":"baltika7.ru","count":309,"cost":0,"all":"310"},{"id":107,"logo":"/uploads/logo/sony.jpg","name":"id.sonyentertainmentnetwork.com","count":309,"cost":1,"all":"310"},{"id":109,"logo":"/uploads/logo/vk.png","name":"Вконтакте+переадресация","count":149,"cost":40,"all":"310"},{"id":110,"logo":"/uploads/logo/yu.png","name":"youla+переадресация","count":149,"cost":40,"all":"310"},{"id":121,"logo":"/uploads/user/10/Yandex.Eda.png","name":"eda.yandex","count":308,"cost":2,"all":"310"},{"id":129,"logo":"/uploads/logo/bkcard-new.jpg","name":"BurgerKing","count":303,"cost":1,"all":"310"},{"id":130,"logo":"/uploads/logo/5.jpg","name":"5ka.ru","count":0,"cost":6,"all":"310"},{"id":132,"logo":"/uploads/logo/wmmail_logo_big1.png","name":"wmmail.ru","count":308,"cost":1,"all":"310"},{"id":140,"logo":"/uploads/logo/com.pmi.store.PMIAPPM05201_1.png","name":"sale.iqos.ru","count":309,"cost":1,"all":"310"},{"id":146,"logo":"/uploads/logo/tinder.png","name":"tinder.com","count":303,"cost":1,"all":"310"},{"id":147,"logo":"/uploads/soft/1527683831_232-azino777.jpg","name":"Azino777","count":308,"cost":1,"all":"310"},{"id":156,"logo":"/uploads/logo/Blockchain.jpg","name":"blockchain.com","count":309,"cost":2,"all":"310"},{"id":162,"logo":"/uploads/logo/eldorado.ru.jpg","name":"eldorado.ru","count":309,"cost":1,"all":"310"},{"id":164,"logo":"/uploads/soft/0.png","name":" jd.Com","count":309,"cost":4,"all":"310"},{"id":166,"logo":"/uploads/logo/deltazaim.ru.png","name":"ASH","count":309,"cost":1,"all":"310"},{"id":168,"logo":"/uploads/logo/gorzdrav-logo-2x-square.png","name":"gorzdrav.org","count":307,"cost":1,"all":"310"},{"id":169,"logo":"/uploads/logo/Vendor-Logo-03.png","name":"Yalla","count":309,"cost":1,"all":"310"},{"id":170,"logo":"/uploads/logo/dent01.png","name":"Dentcoin","count":307,"cost":1,"all":"310"},{"id":175,"logo":"/uploads/logo/zdravcity.ru.jpg","name":"zdravcity.ru","count":302,"cost":1,"all":"310"},{"id":176,"logo":"/uploads/logo/lk.verno-info.ru.png","name":"lk.verno-info.ru","count":309,"cost":1,"all":"310"},{"id":177,"logo":"/uploads/logo/admiral-xxx-online-casino.jpg","name":"11admiral-x.com","count":307,"cost":4,"all":"310"},{"id":179,"logo":"/uploads/logo/34554.png","name":"sweet.tv","count":309,"cost":1,"all":"310"},{"id":181,"logo":"/uploads/logo/454544.jpg","name":"GRADUATE","count":309,"cost":2,"all":"310"},{"id":182,"logo":"/uploads/logo/ya.png","name":"Яндекс+переадресация","count":149,"cost":40,"all":"310"},{"id":200,"logo":"/uploads/soft/iPhone_sms-298x300.jpg","name":"Другой+переадресация","count":11,"cost":40,"all":"310"},{"id":202,"logo":"/uploads/logo/2222222223.png","name":"Самокат","count":309,"cost":1,"all":"310"}]
    


  • @JHFgy7w4gefhjsjf, выполнить код

    [[TINDER_COUNT]] = JSON.parse([[SAVED_CONTENT]]).filter(function(a){return a["name"]=="tinder.com"})[0]["count"]
    

    или с помощью модуля JSON запрос $.[?(@.name=="tinder.com")].count

    Пример скрипта: filter_json.xml



  • @GhostZ Спасибо большое )


Log in to reply