Нужна помощь POST запросы на сайте из скриптами.



  • Есть сайт vkmix.com, делаю автовыполнение заданий, возникла проблема, не могу найти ссылки на кнопки выполнить задание, нашел страничку что отвечает за выдачу заданий, выдает результат в json, показывает имена заданий, но ссылок нет... Я вот думаю если на сайте стоит какой-то скрипт что кнопки скрывает для гет запросов, возможно ли загрузить его через выполнить код, и кликнуть по кнопке.

    Url: https://vkmix.com/i/tasks?network=ok&section=all
    Status: 200
    
    Server: nginx/1.11.6
    Date: Thu, 16 May 2019 21:01:28 GMT
    Content-Type: application/json; charset=utf-8
    Transfer-Encoding: chunked
    Connection: keep-alive
    Metrics: 1011001111011010110011100001100001110000011001110
    Update-balance: 0
    Cache-Control: no-cache, must-revalidate
    Pragma: no-cache
    Strict-Transport-Security: max-age=15552000
    Content-Encoding: gzip
    
    {"response":{"items":[{"id":20395560,"done_count":889,"ordered_count":1150,"image":"https:\/\/i.mycdn.me\/image?id=877520233136&t=34&plc=API&aid=1170629632&tkn=*oLbp_wo7-KzkfnoDe9yE8DJU8fk","title":"PROMebel \u041c\u0435\u0431\u0435\u043b\u044c \u041a\u0430\u043b\u0443","source":"site","amount":3,"network":"ok","section":"friends"},{"id":20420353,"done_count":465,"ordered_count":1000,"image":"https:\/\/i.mycdn.me\/image?id=884567328086&t=32&plc=API&aid=1263374336&tkn=*NcmSLR4SHq2kw0luSIXmPD2HZ-w","title":"Sofosbuvir, \u0421\u043e\u0444\u043e\u0441\u0431\u0443\u0432","source":"api","amount":3,"network":"ok","section":"groups"},{"id":20415524,"done_count":535,"ordered_count":1000,"image":"https:\/\/i.mycdn.me\/image?id=884543276118&t=32&plc=API&aid=1145214976&tkn=*-S4VSwxn8PKVdDhsvGOagMRX0Us","title":"\u041b\u0435\u0447\u0435\u043d\u0438\u0435 \u0413\u0435\u043f\u0430\u0442\u0438\u0442\u0430 C V","source":"api","amount":3,"network":"ok","section":"groups"},{"id":20403306,"done_count":592,"ordered_count":1000,"image":"https:\/\/i.mycdn.me\/image?id=861912816024&t=32&plc=API&aid=1126090240&tkn=*n0qQAfJ_hbu17BGGdGTDiPLnEqs","title":"\u0413\u0440\u0443\u043f\u043f\u0430 \u0420\u0430\u043b\u044c\u0434\u043e\u0440\u0430","source":"site","amount":3,"network":"ok","section":"groups"},{"id":20264914,"done_count":1756,"ordered_count":2500,"image":"https:\/\/i.mycdn.me\/image?id=877919234024&t=32&plc=API&aid=1249773056&tkn=*BU8d8Z6p-CylRvHhUFLOSp2IahI","title":"\u0420\u0435\u0446\u0435\u043f\u0442\u044b \u0438 \u0432\u0441\u0435 \u043e \u0432\u043a\u0443\u0441","source":"site","amount":3,"network":"ok","section":"groups"},{"id":20432133,"done_count":19,"ordered_count":200,"image":"https:\/\/i.mycdn.me\/image?id=812758346187&t=32&plc=API&aid=1145214976&tkn=*DQmlJWTo2blycKk0Z0naP-L5Fho","title":"\u0420\u0435\u0442\u0440\u043e","source":"site","amount":3,"network":"ok","section":"groups"},{"id":20431422,"done_count":35,"ordered_count":77,"image":"https:\/\/i.mycdn.me\/image?id=877822730413&t=34&plc=API&ts=000000000000320300&aid=1096125440&tkn=*p3LA85y0dwqN1yoALzXmkazPZfQ","title":"\u0420\u043e\u0431\u0435\u0440\u0442\u0430 \u0421\u0430\u0431\u043e","source":"site","amount":3,"network":"ok","section":"friends"},{"id":20388162,"done_count":329,"ordered_count":500,"image":"https:\/\/i.mycdn.me\/image?id=873159334301&t=32&plc=API&aid=1145214976&tkn=*F0zTvyg3Kl31zi96zrQvdVQxbGc","title":"\u041f\u0440\u043e\u0434\u0432\u0438\u043d\u0443\u0442\u044b\u0435 \u0443\u0447\u0438\u0442\u0435\u043b\u044f ","source":"site","amount":3,"network":"ok","section":"groups"},{"id":20425289,"done_count":118,"ordered_count":1000,"image":"\/images\/camera_b.gif","title":"\u0413\u0440\u0430\u0436\u0434\u0430\u043d\u0441\u043a\u0438\u0435 \u0430\u043a\u0442\u0438\u0432\u0438\u0441\u0442","source":"site","amount":3,"network":"ok","section":"groups"},{"id":20304718,"done_count":1352,"ordered_count":1979,"image":"https:\/\/i.mycdn.me\/image?id=877845523138&t=32&plc=API&aid=1126090240&tkn=*O2EJfTNAjmfYXGz-qqeJD_Lzi38","title":"\u0425\u043e\u0440\u043e\u0448\u0435\u0435 \u043d\u0430\u0441\u0442\u0440\u043e\u0435\u043d\u0438\u0435","source":"site","amount":3,"network":"ok","section":"groups"},{"id":20395343,"done_count":685,"ordered_count":818,"image":"https:\/\/i.mycdn.me\/image?id=880522115873&t=32&plc=API&aid=1126090240&tkn=*6Pe2hpiQBKGOL_i9Lu31T5rn3p8","title":"\u041e\u043d\u043b\u0430\u0439\u043d \u0437\u0430\u044f\u0432\u043a\u0430 \u043d\u0430 \u043a\u0440\u0435","source":"site","amount":3,"network":"ok","section":"groups"},{"id":20395350,"done_count":677,"ordered_count":819,"image":"https:\/\/i.mycdn.me\/image?id=883592089295&t=32&plc=API&aid=1096125440&tkn=*UyvEkMznvrcnFz04frvo3PdBfZI","title":"\u0417\u0430\u0439\u043c \u2014 \u0431\u044b\u0441\u0442\u0440\u043e \u043f\u043e\u043b\u0443\u0447\u0438","source":"site","amount":3,"network":"ok","section":"groups"},{"id":20432726,"done_count":32,"ordered_count":200,"image":"https:\/\/i.mycdn.me\/image?id=882668116448&t=32&plc=API&aid=1263374336&tkn=*jDQTGo1fZRI_rpWrSdIo4XlTll4","title":"\u041f\u0440\u043e\u0441\u0442\u043e \u041a\u0440\u043e\u0432\u043b\u044f - \u0414\u0438\u0430\u0433","source":"site","amount":3,"network":"ok","section":"groups"},{"id":20432482,"done_count":28,"ordered_count":29,"image":"https:\/\/i.mycdn.me\/image?id=877807949311&t=32&plc=API&aid=1249773056&tkn=*VilDHXdrzGQKA5HpdfnqJB4xPAs","title":"Ukraine Mega Shop","source":"site","amount":3,"network":"ok","section":"groups"},{"id":20419231,"done_count":161,"ordered_count":1000,"image":"https:\/\/i.mycdn.me\/image?id=883948868211&t=32&plc=API&aid=1126090240&tkn=*pyf89eULO1_vnMvsAdAZ9RRaga0","title":"\u042e\u043c\u043e\u0440\u0438\u0441\u0442\u0438\u0447\u0435\u0441\u043a\u0438\u0439 \u0431\u0435\u0441\u043f\u0440","source":"site","amount":3,"network":"ok","section":"groups"},{"id":20428209,"done_count":36,"ordered_count":274,"image":"https:\/\/i.mycdn.me\/image?id=870530462727&t=32&plc=API&aid=1126090240&tkn=*wuUQZH87ci95ZVR68OYi1AhiWWI","title":"\u0411\u0440\u0438\u0433\u0430\u0434\u0430","source":"site","amount":3,"network":"ok","section":"groups"},{"id":19708104,"done_count":6614,"ordered_count":7389,"image":"https:\/\/i.mycdn.me\/image?id=875408054544&t=32&plc=API&aid=1147986176&tkn=*q5VhZs2uY9dcSVr3OK5rJqC8zpw","title":"\u041b\u0430\u0439\u043a","source":"site","amount":3,"network":"ok","section":"groups"},{"id":20414416,"done_count":184,"ordered_count":300,"image":"https:\/\/i.mycdn.me\/image?id=887672392592&t=32&plc=API&aid=1126090240&tkn=*QmS1sA8VO_kKbVuwykLOZqQ6XkI","title":"\u0420\u043e\u0441\u0442\u0435\u043b\u0435\u043a\u043e\u043c - \u041a\u0427\u0420. \u0418\u043d","source":"site","amount":3,"network":"ok","section":"groups"},{"id":20427480,"done_count":272,"ordered_count":300,"image":"https:\/\/i.mycdn.me\/image?id=881198747386&t=32&plc=API&aid=1126090240&tkn=*cXJ-J1-S4TxVkXGW1VuUMUovcho","title":"\u0426\u0435\u043d\u0442\u0440 \u0448\u043a\u043e\u043b\u044c\u043d\u0438\u043a\u0430 \u041e\u041b\u0418\u041c","source":"site","amount":3,"network":"ok","section":"groups"}],"count":19,"networks":[{"name":"vk","types":["likes","comments","friends","groups"],"prices":{"likes":[2,6],"reposts":[3,6],"comments":[3,6],"friends":[4,6],"groups":[3,6],"polls":[2,6]},"limits":[]},{"name":"instagram","types":["likes","subscribers"],"prices":{"likes":[2,6],"subscribers":[3,6],"comments":[3,6],"comments_likes":[2,6]},"limits":[]},{"name":"youtube","types":["likes","friends"],"prices":{"likes":[2,6],"friends":[3,6],"dislikes":[5,10],"comments":[3,6]},"limits":[]},{"name":"ok","types":["likes","friends","groups"],"prices":{"likes":[2,6],"friends":[3,6],"groups":[3,6]},"limits":[]},{"name":"twitter","types":["retweets","followers","favorites"],"prices":{"retweets":[2,6],"followers":[3,6],"favorites":[1,6]},"limits":[]}]}}
    


  • @battleground said in Нужна помощь POST запросы на сайте из скриптами.:

    Есть сайт vkmix.com, делаю автовыполнение заданий, возникла проблема, не могу найти ссылки на кнопки выполнить задание, нашел страничку что отвечает за выдачу заданий, выдает результат в json, показывает имена заданий, но ссылок нет... Я вот думаю если на сайте стоит какой-то скрипт что кнопки скрывает для гет запросов, возможно ли загрузить его через выполнить код, и кликнуть по кнопке.

    Url: https://vkmix.com/i/tasks?network=ok&section=all
    Status: 200
    
    Server: nginx/1.11.6
    Date: Thu, 16 May 2019 21:01:28 GMT
    Content-Type: application/json; charset=utf-8
    Transfer-Encoding: chunked
    Connection: keep-alive
    Metrics: 1011001111011010110011100001100001110000011001110
    Update-balance: 0
    Cache-Control: no-cache, must-revalidate
    Pragma: no-cache
    Strict-Transport-Security: max-age=15552000
    Content-Encoding: gzip
    
    {"response":{"items":[{"id":20395560,"done_count":889,"ordered_count":1150,"image":"https:\/\/i.mycdn.me\/image?id=877520233136&t=34&plc=API&aid=1170629632&tkn=*oLbp_wo7-KzkfnoDe9yE8DJU8fk","title":"PROMebel \u041c\u0435\u0431\u0435\u043b\u044c \u041a\u0430\u043b\u0443","source":"site","amount":3,"network":"ok","section":"friends"},{"id":20420353,"done_count":465,"ordered_count":1000,"image":"https:\/\/i.mycdn.me\/image?id=884567328086&t=32&plc=API&aid=1263374336&tkn=*NcmSLR4SHq2kw0luSIXmPD2HZ-w","title":"Sofosbuvir, \u0421\u043e\u0444\u043e\u0441\u0431\u0443\u0432","source":"api","amount":3,"network":"ok","section":"groups"},{"id":20415524,"done_count":535,"ordered_count":1000,"image":"https:\/\/i.mycdn.me\/image?id=884543276118&t=32&plc=API&aid=1145214976&tkn=*-S4VSwxn8PKVdDhsvGOagMRX0Us","title":"\u041b\u0435\u0447\u0435\u043d\u0438\u0435 \u0413\u0435\u043f\u0430\u0442\u0438\u0442\u0430 C V","source":"api","amount":3,"network":"ok","section":"groups"},{"id":20403306,"done_count":592,"ordered_count":1000,"image":"https:\/\/i.mycdn.me\/image?id=861912816024&t=32&plc=API&aid=1126090240&tkn=*n0qQAfJ_hbu17BGGdGTDiPLnEqs","title":"\u0413\u0440\u0443\u043f\u043f\u0430 \u0420\u0430\u043b\u044c\u0434\u043e\u0440\u0430","source":"site","amount":3,"network":"ok","section":"groups"},{"id":20264914,"done_count":1756,"ordered_count":2500,"image":"https:\/\/i.mycdn.me\/image?id=877919234024&t=32&plc=API&aid=1249773056&tkn=*BU8d8Z6p-CylRvHhUFLOSp2IahI","title":"\u0420\u0435\u0446\u0435\u043f\u0442\u044b \u0438 \u0432\u0441\u0435 \u043e \u0432\u043a\u0443\u0441","source":"site","amount":3,"network":"ok","section":"groups"},{"id":20432133,"done_count":19,"ordered_count":200,"image":"https:\/\/i.mycdn.me\/image?id=812758346187&t=32&plc=API&aid=1145214976&tkn=*DQmlJWTo2blycKk0Z0naP-L5Fho","title":"\u0420\u0435\u0442\u0440\u043e","source":"site","amount":3,"network":"ok","section":"groups"},{"id":20431422,"done_count":35,"ordered_count":77,"image":"https:\/\/i.mycdn.me\/image?id=877822730413&t=34&plc=API&ts=000000000000320300&aid=1096125440&tkn=*p3LA85y0dwqN1yoALzXmkazPZfQ","title":"\u0420\u043e\u0431\u0435\u0440\u0442\u0430 \u0421\u0430\u0431\u043e","source":"site","amount":3,"network":"ok","section":"friends"},{"id":20388162,"done_count":329,"ordered_count":500,"image":"https:\/\/i.mycdn.me\/image?id=873159334301&t=32&plc=API&aid=1145214976&tkn=*F0zTvyg3Kl31zi96zrQvdVQxbGc","title":"\u041f\u0440\u043e\u0434\u0432\u0438\u043d\u0443\u0442\u044b\u0435 \u0443\u0447\u0438\u0442\u0435\u043b\u044f ","source":"site","amount":3,"network":"ok","section":"groups"},{"id":20425289,"done_count":118,"ordered_count":1000,"image":"\/images\/camera_b.gif","title":"\u0413\u0440\u0430\u0436\u0434\u0430\u043d\u0441\u043a\u0438\u0435 \u0430\u043a\u0442\u0438\u0432\u0438\u0441\u0442","source":"site","amount":3,"network":"ok","section":"groups"},{"id":20304718,"done_count":1352,"ordered_count":1979,"image":"https:\/\/i.mycdn.me\/image?id=877845523138&t=32&plc=API&aid=1126090240&tkn=*O2EJfTNAjmfYXGz-qqeJD_Lzi38","title":"\u0425\u043e\u0440\u043e\u0448\u0435\u0435 \u043d\u0430\u0441\u0442\u0440\u043e\u0435\u043d\u0438\u0435","source":"site","amount":3,"network":"ok","section":"groups"},{"id":20395343,"done_count":685,"ordered_count":818,"image":"https:\/\/i.mycdn.me\/image?id=880522115873&t=32&plc=API&aid=1126090240&tkn=*6Pe2hpiQBKGOL_i9Lu31T5rn3p8","title":"\u041e\u043d\u043b\u0430\u0439\u043d \u0437\u0430\u044f\u0432\u043a\u0430 \u043d\u0430 \u043a\u0440\u0435","source":"site","amount":3,"network":"ok","section":"groups"},{"id":20395350,"done_count":677,"ordered_count":819,"image":"https:\/\/i.mycdn.me\/image?id=883592089295&t=32&plc=API&aid=1096125440&tkn=*UyvEkMznvrcnFz04frvo3PdBfZI","title":"\u0417\u0430\u0439\u043c \u2014 \u0431\u044b\u0441\u0442\u0440\u043e \u043f\u043e\u043b\u0443\u0447\u0438","source":"site","amount":3,"network":"ok","section":"groups"},{"id":20432726,"done_count":32,"ordered_count":200,"image":"https:\/\/i.mycdn.me\/image?id=882668116448&t=32&plc=API&aid=1263374336&tkn=*jDQTGo1fZRI_rpWrSdIo4XlTll4","title":"\u041f\u0440\u043e\u0441\u0442\u043e \u041a\u0440\u043e\u0432\u043b\u044f - \u0414\u0438\u0430\u0433","source":"site","amount":3,"network":"ok","section":"groups"},{"id":20432482,"done_count":28,"ordered_count":29,"image":"https:\/\/i.mycdn.me\/image?id=877807949311&t=32&plc=API&aid=1249773056&tkn=*VilDHXdrzGQKA5HpdfnqJB4xPAs","title":"Ukraine Mega Shop","source":"site","amount":3,"network":"ok","section":"groups"},{"id":20419231,"done_count":161,"ordered_count":1000,"image":"https:\/\/i.mycdn.me\/image?id=883948868211&t=32&plc=API&aid=1126090240&tkn=*pyf89eULO1_vnMvsAdAZ9RRaga0","title":"\u042e\u043c\u043e\u0440\u0438\u0441\u0442\u0438\u0447\u0435\u0441\u043a\u0438\u0439 \u0431\u0435\u0441\u043f\u0440","source":"site","amount":3,"network":"ok","section":"groups"},{"id":20428209,"done_count":36,"ordered_count":274,"image":"https:\/\/i.mycdn.me\/image?id=870530462727&t=32&plc=API&aid=1126090240&tkn=*wuUQZH87ci95ZVR68OYi1AhiWWI","title":"\u0411\u0440\u0438\u0433\u0430\u0434\u0430","source":"site","amount":3,"network":"ok","section":"groups"},{"id":19708104,"done_count":6614,"ordered_count":7389,"image":"https:\/\/i.mycdn.me\/image?id=875408054544&t=32&plc=API&aid=1147986176&tkn=*q5VhZs2uY9dcSVr3OK5rJqC8zpw","title":"\u041b\u0430\u0439\u043a","source":"site","amount":3,"network":"ok","section":"groups"},{"id":20414416,"done_count":184,"ordered_count":300,"image":"https:\/\/i.mycdn.me\/image?id=887672392592&t=32&plc=API&aid=1126090240&tkn=*QmS1sA8VO_kKbVuwykLOZqQ6XkI","title":"\u0420\u043e\u0441\u0442\u0435\u043b\u0435\u043a\u043e\u043c - \u041a\u0427\u0420. \u0418\u043d","source":"site","amount":3,"network":"ok","section":"groups"},{"id":20427480,"done_count":272,"ordered_count":300,"image":"https:\/\/i.mycdn.me\/image?id=881198747386&t=32&plc=API&aid=1126090240&tkn=*cXJ-J1-S4TxVkXGW1VuUMUovcho","title":"\u0426\u0435\u043d\u0442\u0440 \u0448\u043a\u043e\u043b\u044c\u043d\u0438\u043a\u0430 \u041e\u041b\u0418\u041c","source":"site","amount":3,"network":"ok","section":"groups"}],"count":19,"networks":[{"name":"vk","types":["likes","comments","friends","groups"],"prices":{"likes":[2,6],"reposts":[3,6],"comments":[3,6],"friends":[4,6],"groups":[3,6],"polls":[2,6]},"limits":[]},{"name":"instagram","types":["likes","subscribers"],"prices":{"likes":[2,6],"subscribers":[3,6],"comments":[3,6],"comments_likes":[2,6]},"limits":[]},{"name":"youtube","types":["likes","friends"],"prices":{"likes":[2,6],"friends":[3,6],"dislikes":[5,10],"comments":[3,6]},"limits":[]},{"name":"ok","types":["likes","friends","groups"],"prices":{"likes":[2,6],"friends":[3,6],"groups":[3,6]},"limits":[]},{"name":"twitter","types":["retweets","followers","favorites"],"prices":{"retweets":[2,6],"followers":[3,6],"favorites":[1,6]},"limits":[]}]}}
    

    Вы бы привели пример готовой ссылки. Подозреваю, что из данного json используется id заданий.



  • 0_1558103318717_КНОПКА ВЫПОЛНИТЬ.png
    На этом рисунки можно увидеть как я проклациваю кнопку выполнить, и видим результат, внизу появляется сначала Get запрос, потом Post запрос. В post есть вижу ид какой-то, может это даже ид задания...
    далее вот ссылка на post запрос https://vkmix.com/i/tasks
    а вот ссылка на get запрос https://vkmix.com/queue?channels=im4301729/system&tag=0&ts=
    Вот данные post запроса:
    0_1558103387788_POST запрос данные.png
    Вот данные Get запроса
    0_1558103513266_GET запрос данные.png

    Исходный код кнопки выполнить:
    0_1558103551800_нажатие на исследовать елемент кнопки выполнить.png
    Исходний код елемента Выполнить (это кнопка что нужно клацнуть чтобы выполнить задания, на ней висит джава скрипт что при клике выполняет данный код, т.е. он открывает новое окошко без инструментов и без ничего лишнего, и выполняет задание, потом закрывает его, примерно это секунд 5 длится, все автоматически происходит после нажатия на эту кнопку.

    function(n, r) {
      n.isDefaultPrevented = function() {
        return n.defaultPrevented
      };
      var o = t[r || n.type],
        a = o ? o.length : 0;
      if (a) {
        if (b(n.immediatePropagationStopped)) {
          var i = n.stopImmediatePropagation;
          n.stopImmediatePropagation = function() {
            n.immediatePropagationStopped = !0, n.stopPropagation && n.stopPropagation(), i && i.call(n)
          }
        }
        n.isImmediatePropagationStopped = function() {
          return !0 === n.immediatePropagationStopped
        };
        var s = o.specialHandlerWrapper || He;
        a > 1 && (o = j(o));
        for (var l = 0; l < a; l++) n.isImmediatePropagationStopped() || s(e, n, o[l])
      }
    }
    

    Я думаю стоит попробовать послать post запрос и подменить значения из json страницы брать ид задания, но я не пойму что за значения другие в пост запросе, кроме ид, а именно as/stat. Еще не понятно какое значение подставить в get запрос ссылку, там где https://vkmix.com/queue?channels=im4301729/system&tag=0&ts= "IMцифры разные"



  • просто автовход на этот сайт сделал, там сначала вхожу через вкмикс, потом через ok.ru, и куки сохраняю, загружаю их в браузер, и нажимаю на ссылку кнопки что дается, так же на похожую кнопку из скриптом, но вход это ладно, 1 раз войти не будет особо грузить проц, а хотелось бы задания на пост сделать, но вот зашел в тупик с этой кнопкой.



  • банит вкмикс. за ботов



  • @grylls У тебя вышло написать на пост запросах под вкмикс? интересно просто) я ищу как найти значения для пост запроса sc и stat



  • @battleground said in Нужна помощь POST запросы на сайте из скриптами.:

    @grylls У тебя вышло написать на пост запросах под вкмикс? интересно просто) я ищу как найти значения для пост запроса sc и stat

    да, писал на запросах, но вкмикс банит за сторонних ботов



  • а остался исходник? не хочу проверить на себе)



  • Комунибудь удавалось послать запрос на ok.ru чтобы добавить в групу? Как не пробовал не выходит, просто кидает на главную страницу, при этом не добавляется в групу, может какая защита стоит.



  • @battleground
    исходника нет


Log in to reply