This commit is contained in:
zino committed 2022-10-23 01:39:27 +02:00
1 parent 8c17aab483
commit 1929b84685
4130 files changed
+479334

No files matched your search

Binary file not shown.
+37
View File
@@ -0,0 +1,37 @@
#! python3
import pyautogui
#import pygetwindow as gw
import sys
# print('Press Ctrl-C to quit.')
# try:
# while True:
# x, y = pyautogui.position()
# positionStr = 'X: ' + str(x).rjust(4) + ' Y: ' + str(y).rjust(4)
# print(positionStr)
# except KeyboardInterrupt:
# print('\nDone.')
file = sys.argv[1]
print('File received as arg: ', file)
#fw = pyautogui.getActiveWindow()
#print('Active window: ', fw)
#print('Maximized: ', fw.isMaximized)
#print('Minimized: ', fw.isMinimized)
#print('isActive: ', fw.isActive)
#print('Title: ', fw.title)
#fileUploadWindow = gw.getWindowsWithTitle('File Upload')[0]
#print('Target window: ', fileUploadWindow)
#fileUploadWindow.activate()
#fileUploadWindow = pyautogui.getWindowsWithTitle('File Upload')[0]
#fileUploadWindow.activate()
pyautogui.PAUSE = 3
pyautogui.hotkey('ctrl', 'l')
pyautogui.typewrite(file, interval=0.1)
pyautogui.press('enter')
print('I am done.')
sys.exit(1)
BIN
View File
Binary file not shown.

After

Width:  |  Height:  |  Size: 37 KiB

BIN
View File
Binary file not shown.
BIN
View File
Binary file not shown.
+299
View File
@@ -0,0 +1,299 @@
$VAR1 = '<html class="js logged-in client-root touch js-focus-visible sDN5V" lang="en"><head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>Instagram</title>
<meta name="robots" content="noimageindex, noarchive">
<meta name="apple-mobile-web-app-status-bar-style" content="default">
<meta name="mobile-web-app-capable" content="yes">
<meta name="theme-color" content="#ffffff">
<meta id="viewport" name="viewport" content="width=device-width, initial-scale=1, minimum-scale=1, maximum-scale=1, viewport-fit=cover">
<link rel="manifest" href="/data/manifest.json">
<link rel="preload" href="/static/bundles/metro/ConsumerUICommons.css/bae63654c3c6.css" as="style" type="text/css" crossorigin="anonymous">
<link rel="preload" href="/static/bundles/metro/Consumer.css/163f518f04b1.css" as="style" type="text/css" crossorigin="anonymous">
<link rel="preload" href="/static/bundles/metro/FeedPageContainer.css/1b39124c7396.css" as="style" type="text/css" crossorigin="anonymous">
<link rel="preload" href="/static/bundles/metro/Vendor.js/5a56d51ae30f.js" as="script" type="text/javascript" crossorigin="anonymous">
<link rel="preload" href="/static/bundles/metro/en_US.js/133051df7e42.js" as="script" type="text/javascript" crossorigin="anonymous">
<link rel="preload" href="/static/bundles/metro/ConsumerLibCommons.js/d92c74f78a97.js" as="script" type="text/javascript" crossorigin="anonymous">
<link rel="preload" href="/static/bundles/metro/ConsumerUICommons.js/145b076b1f60.js" as="script" type="text/javascript" crossorigin="anonymous">
<link rel="preload" href="/static/bundles/metro/ConsumerAsyncCommons.js/c4ca4238a0b9.js" as="script" type="text/javascript" crossorigin="anonymous">
<link rel="preload" href="/static/bundles/metro/Consumer.js/dc41f704356a.js" as="script" type="text/javascript" crossorigin="anonymous">
<link rel="preload" href="/static/bundles/metro/FeedPageContainer.js/77d4108cad4e.js" as="script" type="text/javascript" crossorigin="anonymous">
<link rel="preload" href="/graphql/query/?query_hash=5b71e1f0e14e2ce11199f10da87357ec&amp;variables=%7B%22only_stories%22%3Atrue%2C%22stories_prefetch%22%3Atrue%2C%22stories_video_dash_manifest%22%3Afalse%7D" as="fetch" type="application/json" crossorigin="">
<script type="text/javascript">
(function() {
var docElement = document.documentElement;
var classRE = new RegExp(\'(^|\\\\s)no-js(\\\\s|$)\');
var className = docElement.className;
docElement.className = className.replace(classRE, \'$1js$2\');
})();
</script>
<script type="text/javascript">
(function() {
if (\'PerformanceObserver\' in window && \'PerformancePaintTiming\' in window) {
window.__bufferedPerformance = [];
var ob = new PerformanceObserver(function(e) {
window.__bufferedPerformance.push.apply(window.__bufferedPerformance,e.getEntries());
});
ob.observe({entryTypes:[\'paint\']});
}
window.__bufferedErrors = [];
window.onerror = function(message, url, line, column, error) {
window.__bufferedErrors.push({
message: message,
url: url,
line: line,
column: column,
error: error
});
return false;
};
window.__initialData = {
pending: true,
waiting: []
};
function asyncFetchSharedData(extra) {
var sharedDataReq = new XMLHttpRequest();
sharedDataReq.onreadystatechange = function() {
if (sharedDataReq.readyState === 4) {
if(sharedDataReq.status === 200){
var sharedData = JSON.parse(sharedDataReq.responseText);
window.__initialDataLoaded(sharedData, extra);
}
}
}
sharedDataReq.open(\'GET\', \'/data/shared_data/\', true);
sharedDataReq.send(null);
}
function notifyLoaded(item, data) {
item.pending = false;
item.data = data;
for (var i = 0;i < item.waiting.length; ++i) {
item.waiting[i].resolve(item.data);
}
item.waiting = [];
}
function notifyError(item, msg) {
item.pending = false;
item.error = new Error(msg);
for (var i = 0;i < item.waiting.length; ++i) {
item.waiting[i].reject(item.error);
}
item.waiting = [];
}
window.__initialDataLoaded = function(initialData, extraData) {
if (extraData) {
for (var key in extraData) {
initialData[key] = extraData[key];
}
}
notifyLoaded(window.__initialData, initialData);
};
window.__initialDataError = function(msg) {
notifyError(window.__initialData, msg);
};
window.__additionalData = {};
window.__pendingAdditionalData = function(paths) {
for (var i = 0;i < paths.length; ++i) {
window.__additionalData[paths[i]] = {
pending: true,
waiting: []
};
}
};
window.__additionalDataLoaded = function(path, data) {
if (path in window.__additionalData) {
notifyLoaded(window.__additionalData[path], data);
} else {
console.error(\'Unexpected additional data loaded "\' + path + \'"\');
}
};
window.__additionalDataError = function(path, msg) {
if (path in window.__additionalData) {
notifyError(window.__additionalData[path], msg);
} else {
console.error(\'Unexpected additional data encountered an error "\' + path + \'": \' + msg);
}
};
})();
</script><script type="text/javascript">
/*
Copyright 2018 Google Inc. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
(function(){function g(a,c){b||(b=a,f=c,h.forEach(function(a){removeEventListener(a,l,e)}),m())}function m(){b&&f&&0<d.length&&(d.forEach(function(a){a(b,f)}),d=[])}function n(a,c){function k(){g(a,c);d()}function b(){d()}function d(){removeEventListener("pointerup",k,e);removeEventListener("pointercancel",b,e)}addEventListener("pointerup",k,e);addEventListener("pointercancel",b,e)}function l(a){if(a.cancelable){var c=performance.now(),b=a.timeStamp;b>c&&(c=+new Date);c-=b;"pointerdown"==a.type?n(c,
a):g(c,a)}}var e={passive:!0,capture:!0},h=["click","mousedown","keydown","touchstart","pointerdown"],b,f,d=[];h.forEach(function(a){addEventListener(a,l,e)});window.perfMetrics=window.perfMetrics||{};window.perfMetrics.onFirstInputDelay=function(a){d.push(a);m()}})();
</script>
<link rel="apple-touch-icon-precomposed" sizes="76x76" href="/static/images/ico/apple-touch-icon-76x76-precomposed.png/666282be8229.png">
<link rel="apple-touch-icon-precomposed" sizes="120x120" href="/static/images/ico/apple-touch-icon-120x120-precomposed.png/8a5bd3f267b1.png">
<link rel="apple-touch-icon-precomposed" sizes="152x152" href="/static/images/ico/apple-touch-icon-152x152-precomposed.png/68193576ffc5.png">
<link rel="apple-touch-icon-precomposed" sizes="167x167" href="/static/images/ico/apple-touch-icon-167x167-precomposed.png/4985e31c9100.png">
<link rel="apple-touch-icon-precomposed" sizes="180x180" href="/static/images/ico/apple-touch-icon-180x180-precomposed.png/c06fdb2357bd.png">
<link rel="icon" sizes="192x192" href="/static/images/ico/favicon-192.png/68d99ba29cc8.png">
<link rel="mask-icon" href="/static/images/ico/favicon.svg/fc72dd4bfde8.svg" color="#262626">
<link rel="shortcut icon" type="image/x-icon" href="/static/images/ico/favicon.ico/36b3ee2d91ed.ico">
<link rel="alternate" href="https://www.instagram.com/" hreflang="x-default">
<link rel="alternate" href="https://www.instagram.com/?hl=en" hreflang="en">
<link rel="alternate" href="https://www.instagram.com/?hl=fr" hreflang="fr">
<link rel="alternate" href="https://www.instagram.com/?hl=it" hreflang="it">
<link rel="alternate" href="https://www.instagram.com/?hl=de" hreflang="de">
<link rel="alternate" href="https://www.instagram.com/?hl=es" hreflang="es">
<link rel="alternate" href="https://www.instagram.com/?hl=zh-cn" hreflang="zh-cn">
<link rel="alternate" href="https://www.instagram.com/?hl=zh-tw" hreflang="zh-tw">
<link rel="alternate" href="https://www.instagram.com/?hl=ja" hreflang="ja">
<link rel="alternate" href="https://www.instagram.com/?hl=ko" hreflang="ko">
<link rel="alternate" href="https://www.instagram.com/?hl=pt" hreflang="pt">
<link rel="alternate" href="https://www.instagram.com/?hl=pt-br" hreflang="pt-br">
<link rel="alternate" href="https://www.instagram.com/?hl=af" hreflang="af">
<link rel="alternate" href="https://www.instagram.com/?hl=cs" hreflang="cs">
<link rel="alternate" href="https://www.instagram.com/?hl=da" hreflang="da">
<link rel="alternate" href="https://www.instagram.com/?hl=el" hreflang="el">
<link rel="alternate" href="https://www.instagram.com/?hl=fi" hreflang="fi">
<link rel="alternate" href="https://www.instagram.com/?hl=hr" hreflang="hr">
<link rel="alternate" href="https://www.instagram.com/?hl=hu" hreflang="hu">
<link rel="alternate" href="https://www.instagram.com/?hl=id" hreflang="id">
<link rel="alternate" href="https://www.instagram.com/?hl=ms" hreflang="ms">
<link rel="alternate" href="https://www.instagram.com/?hl=nb" hreflang="nb">
<link rel="alternate" href="https://www.instagram.com/?hl=nl" hreflang="nl">
<link rel="alternate" href="https://www.instagram.com/?hl=pl" hreflang="pl">
<link rel="alternate" href="https://www.instagram.com/?hl=ru" hreflang="ru">
<link rel="alternate" href="https://www.instagram.com/?hl=sk" hreflang="sk">
<link rel="alternate" href="https://www.instagram.com/?hl=sv" hreflang="sv">
<link rel="alternate" href="https://www.instagram.com/?hl=th" hreflang="th">
<link rel="alternate" href="https://www.instagram.com/?hl=tl" hreflang="tl">
<link rel="alternate" href="https://www.instagram.com/?hl=tr" hreflang="tr">
<link rel="alternate" href="https://www.instagram.com/?hl=hi" hreflang="hi">
<link rel="alternate" href="https://www.instagram.com/?hl=bn" hreflang="bn">
<link rel="alternate" href="https://www.instagram.com/?hl=gu" hreflang="gu">
<link rel="alternate" href="https://www.instagram.com/?hl=kn" hreflang="kn">
<link rel="alternate" href="https://www.instagram.com/?hl=ml" hreflang="ml">
<link rel="alternate" href="https://www.instagram.com/?hl=mr" hreflang="mr">
<link rel="alternate" href="https://www.instagram.com/?hl=pa" hreflang="pa">
<link rel="alternate" href="https://www.instagram.com/?hl=ta" hreflang="ta">
<link rel="alternate" href="https://www.instagram.com/?hl=te" hreflang="te">
<link rel="alternate" href="https://www.instagram.com/?hl=ne" hreflang="ne">
<link rel="alternate" href="https://www.instagram.com/?hl=si" hreflang="si">
<link rel="alternate" href="https://www.instagram.com/?hl=ur" hreflang="ur">
<link rel="alternate" href="https://www.instagram.com/?hl=vi" hreflang="vi">
<link rel="alternate" href="https://www.instagram.com/?hl=bg" hreflang="bg">
<link rel="alternate" href="https://www.instagram.com/?hl=fr-ca" hreflang="fr-ca">
<link rel="alternate" href="https://www.instagram.com/?hl=ro" hreflang="ro">
<link rel="alternate" href="https://www.instagram.com/?hl=sr" hreflang="sr">
<link rel="alternate" href="https://www.instagram.com/?hl=uk" hreflang="uk">
<link rel="alternate" href="https://www.instagram.com/?hl=zh-hk" hreflang="zh-hk">
<link rel="alternate" href="https://www.instagram.com/?hl=es-la" hreflang="es-bo">
<link rel="alternate" href="https://www.instagram.com/?hl=es-la" hreflang="es-cl">
<link rel="alternate" href="https://www.instagram.com/?hl=es-la" hreflang="es-do">
<link rel="alternate" href="https://www.instagram.com/?hl=es-la" hreflang="es-pa">
<link rel="alternate" href="https://www.instagram.com/?hl=es-la" hreflang="es-uy">
<link rel="alternate" href="https://www.instagram.com/?hl=es-la" hreflang="es-sv">
<link rel="alternate" href="https://www.instagram.com/?hl=es-la" hreflang="es-pr">
<link rel="alternate" href="https://www.instagram.com/?hl=es-la" hreflang="es-cr">
<link rel="alternate" href="https://www.instagram.com/?hl=es-la" hreflang="es-hn">
<link rel="alternate" href="https://www.instagram.com/?hl=es-la" hreflang="es-py">
<link rel="alternate" href="https://www.instagram.com/?hl=es-la" hreflang="es-gt">
<link rel="alternate" href="https://www.instagram.com/?hl=es-la" hreflang="es-ve">
<link rel="alternate" href="https://www.instagram.com/?hl=es-la" hreflang="es-ar">
<link rel="alternate" href="https://www.instagram.com/?hl=es-la" hreflang="es-ec">
<link rel="alternate" href="https://www.instagram.com/?hl=es-la" hreflang="es-ni">
<link rel="alternate" href="https://www.instagram.com/?hl=es-la" hreflang="es-co">
<link rel="alternate" href="https://www.instagram.com/?hl=es-la" hreflang="es-pe">
<link rel="alternate" href="https://www.instagram.com/?hl=es-la" hreflang="es-mx">
<link rel="alternate" href="https://www.instagram.com/?hl=es-la" hreflang="es-cu">
<script type="text/javascript" as="script" crossorigin="anonymous" charset="utf-8" async="" src="/static/bundles/metro/FeedPageContainer.js/77d4108cad4e.js"></script><link href="/static/bundles/metro/FeedPageContainer.css/1b39124c7396.css" type="text/css" crossorigin="anonymous" media="all" rel="stylesheet"><script type="text/javascript" as="script" crossorigin="anonymous" charset="utf-8" async="" src="/static/bundles/metro/BDClientSignalCollectionTrigger.js/b7afba39e843.js"></script><script type="text/javascript" as="script" crossorigin="anonymous" charset="utf-8" async="" src="/static/bundles/metro/NewUserActivatorsUnit.js/568ab0c1dbbb.js"></script><script type="text/javascript" as="script" crossorigin="anonymous" charset="utf-8" async="" src="/static/bundles/metro/MobileAllCommentsPage.js/defad6867bb5.js"></script><link href="/static/bundles/metro/MobileAllCommentsPage.css/745e87d16b8b.css" type="text/css" crossorigin="anonymous" media="all" rel="stylesheet"><script type="text/javascript" as="script" crossorigin="anonymous" charset="utf-8" async="" src="/static/bundles/metro/DirectMQTT.js/0cf43b7ddcbc.js"></script><script type="text/javascript" as="script" crossorigin="anonymous" charset="utf-8" async="" src="/static/bundles/metro/PostModalEntrypoint.js/3d2800a1a012.js"></script><script type="text/javascript" as="script" crossorigin="anonymous" charset="utf-8" async="" src="/static/bundles/metro/CreationModules.js/9cbc035e916d.js"></script><link href="/static/bundles/metro/CreationModules.css/7b9c9a1f3d05.css" type="text/css" crossorigin="anonymous" media="all" rel="stylesheet"></head>
<body class="" style="">
<div id="react-root"><section class="_9eogI"><div class="Scmby"><header class="_7FF4 _9ezyW"><div class="b5itu "><div class="mXkkY HOQT4"><button class="qXyTW"><svg aria-label="Close" class="_8-yf5 " fill="#262626" height="24" viewBox="0 0 48 48" width="24"><path clip-rule="evenodd" d="M41.1 9.1l-15 15L41 39c.6.6.6 1.5 0 2.1s-1.5.6-2.1 0L24 26.1l-14.9 15c-.6.6-1.5.6-2.1 0-.6-.6-.6-1.5 0-2.1l14.9-15-15-15c-.6-.6-.6-1.5 0-2.1s1.5-.6 2.1 0l15 15 15-15c.6-.6 1.5-.6 2.1 0 .6.6.6 1.6 0 2.2z" fill-rule="evenodd"></path></svg></button></div><h1 class="K3Sf1">New Photo Post</h1><div class="mXkkY KDuQp"><button class="UP43G">Next</button></div></div></header></div><div class="gH2iS"><div class="N7f6u Bc-AD "><div class="_16j19"><div class="Iv5U2 jySKW"><div class="_9gMUf"><div class="RxjQs" style="background-image: url(&quot;blob:https://www.instagram.com/92f70f61-f58f-4807-be31-46e098e30a19&quot;); position: absolute; height: 174.262%; left: 0%; top: -37.1308%; width: 100%; transition: all 0.2s ease 0s; transform: rotate(0deg); transform-origin: 50% 50% 0px;"></div><div class="haDwD"><div class="vu-2I" style="left: 33%; top: 0%; width: 1px; height: 100%;"></div><div class="vu-2I" style="right: 33%; top: 0%; width: 1px; height: 100%;"></div><div class="vu-2I" style="top: 33%; left: 0%; height: 1px; width: 100%;"></div><div class="vu-2I" style="bottom: 33%; left: 0%; height: 1px; width: 100%;"></div></div><button class="pHnkA"><span class="Szr5J createSpriteExpand">Expand</span></button><button class="hEV0_"><span class="Szr5J createSpriteRotate">Rotate</span></button></div></div></div></div></div></section></div>
<script type="text/javascript">window.__pendingAdditionalData(["feed"]);</script><link rel="stylesheet" href="/static/bundles/metro/ConsumerUICommons.css/bae63654c3c6.css" type="text/css" crossorigin="anonymous">
<link rel="stylesheet" href="/static/bundles/metro/Consumer.css/163f518f04b1.css" type="text/css" crossorigin="anonymous">
<script type="text/javascript">var __BUNDLE_START_TIME__=this.nativePerformanceNow?nativePerformanceNow():Date.now(),__DEV__=false,process=this.process||{};process.env=process.env||{};process.env.NODE_ENV=process.env.NODE_ENV||"production";!(function(r){"use strict";function e(){return c=Object.create(null)}function t(r){var e=r,t=c[e];return t&&t.isInitialized?t.publicModule.exports:o(e,t)}function n(r){var e=r;if(c[e]&&c[e].importedDefault!==f)return c[e].importedDefault;var n=t(e),i=n&&n.__esModule?n.default:n;return c[e].importedDefault=i}function i(r){var e=r;if(c[e]&&c[e].importedAll!==f)return c[e].importedAll;var n,i=t(e);if(i&&i.__esModule)n=i;else{if(n={},i)for(var o in i)p.call(i,o)&&(n[o]=i[o]);n.default=i}return c[e].importedAll=n}function o(e,t){if(!s&&r.ErrorUtils){s=!0;var n;try{n=u(e,t)}catch(e){r.ErrorUtils.reportFatalError(e)}return s=!1,n}return u(e,t)}function l(r){return{segmentId:r>>>v,localId:r&h}}function u(e,o){if(!o&&g.length>0){var u=l(e),f=u.segmentId,p=u.localId,s=g[f];null!=s&&(s(p),o=c[e])}var v=r.nativeRequire;if(!o&&v){var h=l(e),I=h.segmentId;v(h.localId,I),o=c[e]}if(!o)throw a(e);if(o.hasError)throw d(e,o.error);o.isInitialized=!0;var _=o,w=_.factory,y=_.dependencyMap;try{var M=o.publicModule;if(M.id=e,m.length>0)for(var b=0;b<m.length;++b)m[b].cb(e,M);return w(r,t,n,i,M,M.exports,y),o.factory=void 0,o.dependencyMap=void 0,M.exports}catch(r){throw o.hasError=!0,o.error=r,o.isInitialized=!1,o.publicModule.exports=void 0,r}}function a(r){var e=\'Requiring unknown module "\'+r+\'".\';return Error(e)}function d(r,e){var t=r;return Error(\'Requiring module "\'+t+\'", which threw an exception: \'+e)}r.__r=t,r.__d=function(r,e,t){null==c[e]&&(c[e]={dependencyMap:t,factory:r,hasError:!1,importedAll:f,importedDefault:f,isInitialized:!1,publicModule:{exports:{}}})},r.__c=e,r.__registerSegment=function(r,e){g[r]=e};var c=e(),f={},p={}.hasOwnProperty;t.importDefault=n,t.importAll=i;var s=!1,v=16,h=65535;t.unpackModuleId=l,t.packModuleId=function(r){return(r.segmentId<<v)+r.localId};var m=[];t.registerHook=function(r){var e={cb:r};return m.push(e),{release:function(){for(var r=0;r<m.length;++r)if(m[r]===e){m.splice(r,1);break}}}};var g=[]})(\'undefined\'!=typeof global?global:\'undefined\'!=typeof window?window:this);
__s={"js":{"146":"/static/bundles/metro/PasswordEncryptionLogger.js/1b8a581a878c.js","147":"/static/bundles/metro/EncryptionUtils.js/4606f05f85cd.js","148":"/static/bundles/metro/MobileStoriesLoginPage.js/1c015a3e9ddb.js","149":"/static/bundles/metro/DesktopStoriesLoginPage.js/fe00402dcdbf.js","150":"/static/bundles/metro/AvenyFont.js/a4de03cd349f.js","151":"/static/bundles/metro/StoriesDebugInfoNub.js/b52ae3b5d50d.js","152":"/static/bundles/metro/MobileStoriesPage.js/6a8912eed33e.js","153":"/static/bundles/metro/DesktopStoriesPage.js/d5836f2b7c3d.js","154":"/static/bundles/metro/ActivityFeedPage.js/52282715d3bf.js","155":"/static/bundles/metro/AdsSettingsPage.js/073f96169b4b.js","156":"/static/bundles/metro/DonateCheckoutPage.js/6f39083bae86.js","157":"/static/bundles/metro/FundraiserWebView.js/2e6a78340fe5.js","158":"/static/bundles/metro/FBPayConnectLearnMorePage.js/878076736145.js","159":"/static/bundles/metro/CameraPage.js/f6003be94a0c.js","160":"/static/bundles/metro/SettingsModules.js/4635fca2085a.js","161":"/static/bundles/metro/ContactHistoryPage.js/09d1cdb25e3b.js","162":"/static/bundles/metro/AccessToolPage.js/e0a315b2657f.js","163":"/static/bundles/metro/AccessToolViewAllPage.js/91ae51122cd6.js","164":"/static/bundles/metro/AccountPrivacyBugPage.js/a18b6a1b7e26.js","165":"/static/bundles/metro/FirstPartyPlaintextPasswordLandingPage.js/03cb229dd843.js","166":"/static/bundles/metro/ThirdPartyPlaintextPasswordLandingPage.js/12fe8a4c17d3.js","167":"/static/bundles/metro/ShoppingBagLandingPage.js/350319024739.js","168":"/static/bundles/metro/PlaintextPasswordBugPage.js/39fab36b1fc7.js","169":"/static/bundles/metro/PrivateAccountMadePublicBugPage.js/083a08fed48b.js","170":"/static/bundles/metro/PublicAccountNotMadePrivateBugPage.js/d22f63808313.js","171":"/static/bundles/metro/BlockedAccountsBugPage.js/74d4cb8f66a5.js","172":"/static/bundles/metro/AndroidBetaPrivacyBugPage.js/5c44e5f035b0.js","173":"/static/bundles/metro/DataControlsSupportPage.js/f139795d13c5.js","174":"/static/bundles/metro/DataDownloadRequestPage.js/5b14d4d7d1a5.js","175":"/static/bundles/metro/DataDownloadRequestConfirmPage.js/cdb34ef3a5cd.js","176":"/static/bundles/metro/CheckpointUnderageAppealPage.js/301715b804b1.js","177":"/static/bundles/metro/AccountRecoveryLandingPage.js/b89919d8f541.js","178":"/static/bundles/metro/ParentalConsentPage.js/6144683d176c.js","179":"/static/bundles/metro/ParentalConsentNotParentPage.js/3d6fef861138.js","180":"/static/bundles/metro/TermsAcceptPage.js/4c2e35297154.js","181":"/static/bundles/metro/TermsUnblockPage.js/3617372cfbf6.js","182":"/static/bundles/metro/NewTermsConfirmPage.js/868d1afe6d44.js","183":"/static/bundles/metro/CreationModules.js/9cbc035e916d.js","184":"/static/bundles/metro/StoryCreationPage.js/7c4a1f042452.js","185":"/static/bundles/metro/DynamicExploreMediaPage.js/57d966a7e7fc.js","186":"/static/bundles/metro/DiscoverMediaPageContainer.js/253c885fad75.js","187":"/static/bundles/metro/DiscoverPeoplePageContainer.js/8232cd25c0df.js","188":"/static/bundles/metro/EmailConfirmationPage.js/72df93295639.js","189":"/static/bundles/metro/EmailReportBadPasswordResetPage.js/a7666a82447f.js","190":"/static/bundles/metro/FBSignupPage.js/173903e8bce1.js","191":"/static/bundles/metro/ReclaimAccountPage.js/7d4125c38ec8.js","192":"/static/bundles/metro/NewUserInterstitial.js/5e1bbae084e3.js","193":"/static/bundles/metro/MultiStepSignupPage.js/0c28b684d461.js","194":"/static/bundles/metro/EmptyFeedPage.js/77fc27762e34.js","195":"/static/bundles/metro/NewUserActivatorsUnit.js/568ab0c1dbbb.js","196":"/static/bundles/metro/FeedEndSuggestedUserUnit.js/3b31cfa25880.js","197":"/static/bundles/metro/FeedSidebarContainer.js/e3af89d0420f.js","198":"/static/bundles/metro/SuggestedUserFeedUnitContainer.js/417a928f9c6a.js","199":"/static/bundles/metro/InFeedStoryTray.js/b119bcaf0864.js","200":"/static/bundles/metro/FeedPageContainer.js/77d4108cad4e.js","201":"/static/bundles/metro/FollowListModal.js/f8ecebf0d4a9.js","202":"/static/bundles/metro/FollowListPage.js/f9f4bbd6b086.js","203":"/static/bundles/metro/SimilarAccountsPage.js/84f210074416.js","204":"/static/bundles/metro/LikedByListContainer.js/c7911530a70b.js","205":"/static/bundles/metro/shaka-player.ui.js/2e27fa05a609.js","206":"/static/bundles/metro/LiveBroadcastPage.js/86567111532a.js","207":"/static/bundles/metro/VotingInformationCenterPage.js/c299a3cb7f2a.js","208":"/static/bundles/metro/FalseInformationLandingPage.js/3097d8d63242.js","209":"/static/bundles/metro/FalseInformationAppealsPage.js/fe71e234004e.js","210":"/static/bundles/metro/CommentLikedByListContainer.js/97acfd570ef6.js","211":"/static/bundles/metro/LandingPage.js/a4977748dc2d.js","212":"/static/bundles/metro/LocationsDirectoryCountryPage.js/60d81fbda025.js","213":"/static/bundles/metro/LocationsDirectoryCityPage.js/beca334c30ee.js","214":"/static/bundles/metro/LocationPageContainer.js/82008ef21b38.js","215":"/static/bundles/metro/LocationsDirectoryLandingPage.js/eed18fb9fb2c.jsLine truncated
<script type="text/javascript" src="/static/scripts/polyfills/history.js/scripts/bundled/html5/native.history.js/e2d74f3e36a3.js" crossorigin="anonymous"></script>
<script type="text/javascript" src="/static/bundles/metro/Polyfills.js/4305daed7f76.js" crossorigin="anonymous"></script>
<script type="text/javascript" src="/static/bundles/metro/Vendor.js/5a56d51ae30f.js" crossorigin="anonymous"></script>
<script type="text/javascript" src="/static/bundles/metro/en_US.js/133051df7e42.js" crossorigin="anonymous"></script>
<script type="text/javascript" src="/static/bundles/metro/ConsumerLibCommons.js/d92c74f78a97.js" crossorigin="anonymous"></script>
<script type="text/javascript" src="/static/bundles/metro/ConsumerUICommons.js/145b076b1f60.js" crossorigin="anonymous"></script>
<script type="text/javascript" src="/static/bundles/metro/ConsumerAsyncCommons.js/c4ca4238a0b9.js" crossorigin="anonymous"></script>
<script type="text/javascript" src="/static/bundles/metro/Consumer.js/dc41f704356a.js" crossorigin="anonymous" charset="utf-8" async=""></script>
<script type="text/javascript" src="/static/bundles/metro/FeedPageContainer.js/77d4108cad4e.js" crossorigin="anonymous" charset="utf-8" async=""></script><script type="text/javascript">window._sharedData = {"config":{"csrf_token":"ks1M0R20yC2JLO7Fz9aJ1nfgoAlurZfH","viewer":{"biography":"YOU NEED Photoshop/Lightroom/Illustrator/Dreamviewer/Premiere ? \\ud83d\\udd25 FAST, EASY, CHEAP \\ud83d\\udd25 Automatic activation and no subscription","external_url":null,"full_name":"ADOBE PRODUCTS","has_phone_number":false,"has_profile_pic":true,"has_tabbed_inbox":false,"id":"7548170620","is_joined_recently":false,"is_private":false,"profile_pic_url":"https://scontent-frt3-1.cdninstagram.com/v/t51.2885-19/s150x150/47582530_630828640668731_3044549453953368064_n.jpg?_nc_ht=scontent-frt3-1.cdninstagram.com\\u0026_nc_ohc=WCOIWifbycAAX9_akzc\\u0026oh=a1471544de025fa56c25ec2b51e7f094\\u0026oe=5FAF61E8","profile_pic_url_hd":"https://scontent-frt3-1.cdninstagram.com/v/t51.2885-19/s320x320/47582530_630828640668731_3044549453953368064_n.jpg?_nc_ht=scontent-frt3-1.cdninstagram.com\\u0026_nc_ohc=WCOIWifbycAAX9_akzc\\u0026oh=404ceec93027b97796810f22645eee8a\\u0026oe=5FB00718","username":"adobebestprices","badge_count":"{\\"seq_id\\": 367, \\"badge_count\\": 0, \\"badge_count_at_ms\\": 1602709015205}"},"viewerId":"7548170620"},"country_code":"unknown","language_code":"en","locale":"en_US","entry_data":{"FeedPage":[{}]},"hostname":"www.instagram.com","is_whitelisted_crawl_bot":false,"connection_quality_rating":"EXCELLENT","deployment_stage":"c2","platform":"ios","nonce":"MXmLZjQbGrGk7OlAZ8XF3A==","mid_pct":60.37574,"zero_data":{},"cache_schema_version":3,"server_checks":{"hfe":true},"knobx":{"17":false,"20":true,"22":true,"23":true,"24":true,"25":true,"26":true,"27":true,"28":true,"29":true,"32":true,"34":true,"35":false,"36":false,"38":25000,"39":true,"4":false,"40":false},"to_cache":{"gatekeepers":{"10":false,"100":true,"101":true,"102":true,"103":false,"104":true,"105":true,"106":true,"107":false,"108":false,"11":true,"112":true,"113":true,"114":true,"116":true,"119":false,"12":false,"120":true,"123":false,"126":false,"128":false,"13":true,"131":false,"132":false,"137":true,"14":true,"140":false,"142":false,"146":true,"147":false,"149":false,"15":true,"150":false,"151":false,"152":true,"153":false,"154":true,"156":false,"157":false,"158":false,"159":true,"16":true,"160":false,"162":true,"164":true,"166":true,"167":false,"168":false,"18":true,"19":false,"23":false,"24":false,"26":true,"27":false,"28":false,"29":true,"31":false,"32":true,"34":false,"35":false,"38":true,"4":true,"40":true,"41":false,"43":true,"5":false,"59":true,"6":false,"61":false,"62":false,"63":false,"64":false,"65":false,"67":true,"68":false,"69":true,"7":false,"71":false,"73":false,"74":false,"75":true,"78":true,"79":false,"8":false,"81":false,"82":true,"84":false,"86":false,"9":false,"91":false,"95":true,"97":false},"qe":{"app_upsell":{"g":"","p":{}},"igl_app_upsell":{"g":"","p":{}},"notif":{"g":"","p":{}},"onetaplogin":{"g":"","p":{}},"felix_clear_fb_cookie":{"g":"control","p":{"is_enabled":"true","blacklist":"fbsr_124024574287414"}},"felix_creation_duration_limits":{"g":"dogfooding","p":{"maximum_length_seconds":"3600","minimum_length_seconds":"60"}},"felix_creation_fb_crossposting":{"g":"control","p":{"is_enabled":"false"}},"felix_creation_fb_crossposting_v2":{"g":"control","p":{"is_enabled":"true","display_version":"2"}},"felix_creation_validation":{"g":"control","p":{"edit_video_controls":"true","description_maximum_length":"2200","max_video_size_in_bytes":"3600000000","minimum_length_for_feed_preview_seconds":"60","title_maximum_length":"75","valid_cover_mime_types":"image/jpeg,image/png","valid_video_extensions":"mp4,mov","valid_video_mime_types":"video/mp4,video/quicktime"}},"post_options":{"g":"control","p":{"use_refactor":"true","enable_igtv_embed":"true"}},"sticker_tray":{"g":"","p":{}},"web_sentry":{"g":"control","p":{"show_feedback":"false"}},"0":{"p":{"9":false},"l":{},"qex":true},"100":{"p":{"0":true},"l":{},"qex":true},"101":{"p":{"0":false,"1":false},"l":{},"qex":true},"102":{"p":{"0":true},"l":{},"qex":true},"104":{"p":{"0":true},"l":{},"qex":true},"108":{"p":{"0":false,"1":false},"l":{},"qex":true},"109":{"p":{"2":false},"l":{},"qex":true},"111":{"p":{"0":false,"1":false},"l":{},"qex":true},"113":{"p":{"0":true,"1":false,"2":true,"4":false,"5":false,"7":false,"8":false},"l":{},"qex":true},"117":{"p":{"0":false},"l":{},"qex":true},"118":{"p":{"0":false,"1":true,"2":false},"l":{},"qex":true},"119":{"p":{"0":false},"l":{},"qex":true},"12":{"p":{"0":5},"l":{},"qex":true},"121":{"p":{"0":true},"l":{},"qex":true},"122":{"p":{"0":false},"l":{},"qex":true},"123":{"p":{"0":true,"1":true,"2":false},"l":{},"qex":true},"124":{"p":{"0":false,"1":true,"2":false,"3":false,"4":false},"l":{},"qex":true},"125":{"p":{"0":true},"l":{},"qex":true},"127":{"p":{"0":true,"1":true,"2":true},"l":{},"qex":true},"128":{"p":{"0":false,"1":false},"l":{},"qex":true},"129"Line truncated
<script type="text/javascript">window.__initialDataLoaded(window._sharedData);</script><script type="text/javascript">window.__additionalDataLoaded(\'feed\',{"user":{"id":"7548170620","profile_pic_url":"https://scontent-frt3-1.cdninstagram.com/v/t51.2885-19/s150x150/47582530_630828640668731_3044549453953368064_n.jpg?_nc_ht=scontent-frt3-1.cdninstagram.com\\u0026_nc_ohc=WCOIWifbycAAX9_akzc\\u0026oh=a1471544de025fa56c25ec2b51e7f094\\u0026oe=5FAF61E8","username":"adobebestprices","edge_web_feed_timeline":{"page_info":{"has_next_page":true,"end_cursor":"KGEAxR-MI26FkyHLCyf9oz-VIVPGpjy365QhE4cUl_9PlCEVmoTtSKWSIRUinVPArZEhJK6kvVlQkyHnYo9XxwuSIax2p73_G5IhMvGUu5D0kiG0JRwCec6RITyCF4QdZJIhFtaxto6lXQA="},"edges":[{"node":{"__typename":"GraphImage","id":"2419106027784340028","dimensions":{"height":1080,"width":1080},"display_url":"https://scontent-frx5-1.cdninstagram.com/v/t51.2885-15/e35/121246751_192908959071467_3781647695823531892_n.jpg?_nc_ht=scontent-frx5-1.cdninstagram.com\\u0026_nc_cat=111\\u0026_nc_ohc=cjwg7Ubi3X8AX-k16aE\\u0026se=7\\u0026_nc_tp=18\\u0026oh=c717abb726b03ec24c60702d86fc72ed\\u0026oe=5FB2A5C0","display_resources":[{"src":"https://scontent-frx5-1.cdninstagram.com/v/t51.2885-15/sh0.08/e35/s640x640/121246751_192908959071467_3781647695823531892_n.jpg?_nc_ht=scontent-frx5-1.cdninstagram.com\\u0026_nc_cat=111\\u0026_nc_ohc=cjwg7Ubi3X8AX-k16aE\\u0026_nc_tp=24\\u0026oh=d4f2b0465a25a86ef1e31a7bc5ed6093\\u0026oe=5FB0A886","config_width":640,"config_height":640},{"src":"https://scontent-frx5-1.cdninstagram.com/v/t51.2885-15/sh0.08/e35/s750x750/121246751_192908959071467_3781647695823531892_n.jpg?_nc_ht=scontent-frx5-1.cdninstagram.com\\u0026_nc_cat=111\\u0026_nc_ohc=cjwg7Ubi3X8AX-k16aE\\u0026_nc_tp=24\\u0026oh=3331dbdd217901a3d1e6996d1674542f\\u0026oe=5FB119C2","config_width":750,"config_height":750},{"src":"https://scontent-frx5-1.cdninstagram.com/v/t51.2885-15/e35/121246751_192908959071467_3781647695823531892_n.jpg?_nc_ht=scontent-frx5-1.cdninstagram.com\\u0026_nc_cat=111\\u0026_nc_ohc=cjwg7Ubi3X8AX-k16aE\\u0026se=7\\u0026_nc_tp=18\\u0026oh=c717abb726b03ec24c60702d86fc72ed\\u0026oe=5FB2A5C0","config_width":1080,"config_height":1080}],"follow_hashtag_info":null,"is_video":false,"tracking_token":"eyJ2ZXJzaW9uIjo1LCJwYXlsb2FkIjp7ImlzX2FuYWx5dGljc190cmFja2VkIjp0cnVlLCJ1dWlkIjoiMDcyOGJmZmJhZjAyNDE4OGFhZThmY2QwMDFiMjcyZjAyNDE5MTA2MDI3Nzg0MzQwMDI4Iiwic2VydmVyX3Rva2VuIjoiMTYwMjcwOTAxNTc3OXwyNDE5MTA2MDI3Nzg0MzQwMDI4fDc1NDgxNzA2MjB8YzNhMWRhODhkOGFiMmM1Njg3MzM0OWVmNGQ2YWMwY2Y0YWU0MGZmN2JhMzc3ZDY4NjViZGE0OTgzMDE3YjIyOCJ9LCJzaWduYXR1cmUiOiIifQ==","edge_media_to_tagged_user":{"edges":[]},"accessibility_caption":"Photo by Mary S. on October 13, 2020. Image may contain: text that says \'\\u043e\\u0441\\u0443\\u0436\\u0434\\u0430\\u044e\\u0449\\u0435 Alt \\u0441\\u043c\\u043e\\u0442\\u0440\\u0438\\u0442\'.","attribution":null,"shortcode":"CGSZB2EF4I8","edge_media_to_caption":{"edges":[{"node":{"text":"\\u0430 \\u0442\\u0430\\u043a \\u043c\\u0435\\u043d\\u044f \\u0432\\u0438\\u0434\\u0438\\u0442 @________.k.k.________ \\ud83d\\ude05\\n\\u0441\\u043f\\u0430\\u0441\\u0438\\u0431 \\u0436\\u0430\\u0431\\u0435\\u043d\\u044f\\ud83e\\udd17"}}]},"edge_media_preview_comment":{"count":2,"page_info":{"has_next_page":false,"end_cursor":null},"edges":[{"node":{"id":"17854826150306903","text":"#drawing #draw #sketch #drawingoftheday","created_at":1602599992,"did_report_as_spam":false,"owner":{"id":"6696595244","profile_pic_url":"https://scontent-frt3-1.cdninstagram.com/v/t51.2885-19/s150x150/121006858_113443550403180_165966615009187717_n.jpg?_nc_ht=scontent-frt3-1.cdninstagram.com\\u0026_nc_ohc=ELGmIItekRkAX-N2qTY\\u0026oh=a16898440fda8474243f3a811541a70e\\u0026oe=5FB0DD92","username":"m.storrm"},"viewer_has_liked":false}},{"node":{"id":"17924478394441811","text":"\\u041a\\u0445\\u0445\\u0445\\u0445\\u0445\\u044c\\u044c\\u044c\\u044c\\u044c\\u044c)))) \\u263a\\ufe0f\\ud83e\\udd17","created_at":1602657417,"did_report_as_spam":false,"owner":{"id":"3027156612","profile_pic_url":"https://scontent-frt3-1.cdninstagram.com/v/t51.2885-19/s150x150/84358872_807016226442108_7009933724301131776_n.jpg?_nc_ht=scontent-frt3-1.cdninstagram.com\\u0026_nc_ohc=sAuQ3UT3TuMAX-Fplch\\u0026oh=35c8990b2cad340df433382840ad6e36\\u0026oe=5FAF17C2","username":"________.k.k.________"},"viewer_has_liked":false}}]},"gating_info":null,"fact_check_overall_rating":null,"fact_check_information":null,"media_overlay_info":null,"media_preview":"ACoq0RTBcRf31/MU761TyPRB+A/LpRew7XLnnx/3l/MUyWRGjYBgTtbgEZ6GlSKNlBKrkj0FDwoFbaoB2nkD1FMRzH/1uaQk05lKcHjP5Gk49DSEdTVNQMFSB9T78A/WrbcA1W29fXsD/n3pMpFmI4G09qkf7p+h/lUCk5wee5/z7VNnIpoTMQruHNVvIHvVvOBSYNAEpvXPZf1/xqM3T+i/l/8AXqGkNAE32qT1A/AU77TIR97+VVz0pBQBMOaWmrTqBH//2Q==","comments_disabled":false,"taken_at_timestamp":1602599932,"edge_media_preview_like":{"count":-1,"edges":[{"node":{"id":"3027156612","profile_pic_url":"https://scontent-frt3-1.cdninstagram.com/v/t51.2885-19/s150x150/84358872_807016226442108_7009933724301131776_n.jpg?_ncLine truncated
(function(){
function normalizeError(err) {
var errorInfo = err.error || {};
var getConfigProp = function(propName, defaultValueIfNotTruthy) {
var propValue = window._sharedData && window._sharedData[propName];
return propValue ? propValue : defaultValueIfNotTruthy;
};
return {
line: err.line || errorInfo.message || 0,
column: err.column || 0,
name: \'InitError\',
message: err.message || errorInfo.message || \'\',
script: errorInfo.script || \'\',
stack: errorInfo.stackTrace || errorInfo.stack || \'\',
timestamp: Date.now(),
ref: window.location.href,
deployment_stage: getConfigProp(\'deployment_stage\', \'\'),
frontend_env: getConfigProp(\'frontend_env\', \'prod\'),
rollout_hash: getConfigProp(\'rollout_hash\', \'\'),
is_prerelease: window.__PRERELEASE__ || false,
bundle_variant: getConfigProp(\'bundle_variant\', null),
request_url: err.url || window.location.href,
response_status_code: errorInfo.statusCode || 0
}
}
window.addEventListener(\'load\', function(){
if (window.__bufferedErrors && window.__bufferedErrors.length) {
if (window.caches && window.caches.keys && window.caches.delete) {
window.caches.keys().then(function(keys) {
keys.forEach(function(key) {
window.caches.delete(key)
})
})
}
window.__bufferedErrors.map(function(error) {
return normalizeError(error)
}).forEach(function(normalizedError) {
var request = new XMLHttpRequest();
request.open(\'POST\', \'/client_error/\', true);
request.setRequestHeader(\'Content-Type\', \'application/json; charset=utf-8\');
request.send(JSON.stringify(normalizedError));
})
}
})
}());
</script><div style="position: fixed; top:env(safe-area-inset-top); right:env(safe-area-inset-right); bottom:env(safe-area-inset-bottom); left:env(safe-area-inset-left); pointer-events: none; contain: strict; z-index: -9999;"></div><textarea style="min-height: 0px !important; max-height: none !important; height: 0px !important; visibility: hidden !important; overflow: hidden !important; position: absolute !important; z-index: -1000 !important; top: 0px !important; right: 0px !important; letter-spacing: normal; line-height: 18px; font-family: -apple-system, BlinkMacSystemFont, &quot;Segoe UI&quot;, Roboto, Helvetica, Arial, sans-serif; font-weight: 400; font-size: 14px; font-style: normal; text-rendering: optimizelegibility; text-transform: none; width: 0px; text-indent: 0px; padding: 0px; border-width: 0px; box-sizing: content-box;"></textarea><div class="Z2m7o"><div class="CgFia "></div></div></body></html>';
@@ -0,0 +1 @@
{"/home/pi/projects/instafeed/selenium/profiles/adobebestprices/images/UJAM Virtual Bassist DANDY v2.1.1 VST AAX [WIN].jpg":{"FILEPATH":"/home/pi/projects/instafeed/selenium/profiles/adobebestprices/images/UJAM Virtual Bassist DANDY v2.1.1 VST AAX [WIN].jpg","TIMESTAMP_UPLOADED":"19000100_000000"}}
Binary file not shown.

After

Width:  |  Height:  |  Size: 67 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 41 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 47 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 44 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 42 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 42 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 43 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 42 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 73 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 57 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 40 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 48 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 37 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 24 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 59 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 23 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 40 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 105 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 36 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 26 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 56 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 43 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 40 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 40 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 41 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 47 KiB

Binary file not shown.
+356
View File
@@ -0,0 +1,356 @@
#!usr/bin/perl
use feature qw(say);
use JSON::XS qw(encode_json decode_json);
use Selenium::Firefox::Profile;
use Data::Dumper;
use HTML::TreeBuilder::XPath;
use File::Slurp qw(read_file write_file);
use Selenium::Remote::WDKeys;
use Selenium::Firefox;
use Cwd;
use Getopt::Long qw(GetOptions);
use File::Basename;
use List::Util 'shuffle';
use Selenium::Waiter qw/wait_until/;
my (%config, $driver_profile, $driver);
sub Init {
%config = (
'xpath' => {
'input_username_classic' => '//*[@id="id_username"]',
'input_password_classic' => '//*[@id="id_enc_password"]',
'button_login_classic' => '//*[@id="login-form"]/p[3]/input',
'button_addtohomescreen' => '/html/body/div[4]/div/div/div/div[3]/button[1][text()="Add to Home screen"]',
'button_addtohomescreen_cancel' => '/html/body/div[4]/div/div/div/div[3]/button[2][text()="Cancel"]',
'button_newpost' => '//div[contains(@data-testid, "new-post-button")]',
'input_newpostupload' => '//*[@id="react-root"]/section/nav[2]/div/div/form/input',
'button_expand' => '//span[text()="Expand"]',
'button_next' => '//button[text()="Next"]',
'button_share' => '//button[text()="Share"]',
'textarea_caption' => '//textarea[contains(@placeholder,"Write a caption")]',
},
'profile' => {
'adobebestprices' => {
'DBFilepath' => cwd() . '/profiles/adobebestprices/db/db_adobebestprices.dat',
'imageDir' => cwd() . '/profiles/adobebestprices/images',
'filename_as_title' => 1,
'tags' => ['#Beats', '#FLStudio20', '#Producer', '#Ableton', '#Beatmaker', '#Studio', '#ProTools', '#Music', '#DAW', '#LogicPro', '#VST', '#VSTplugins', '#NativeInstruments', '#Drums', '#MIDI', '#Omnisphere', '#Keyscape', '#Trilian', '#Logic', '#Waves', '#Antares', '#AutoTune', '#Kontakt', '#SoundToys', '#FABFilter', '#Arturia', '#Windows', '#MAC'],
},
},
'dumpToFile' => cwd() . '/get_page_source',
'pyautogui_cmd' => 'python3 ' . cwd() . '/autogui.py',
'profile_selected' => undef,
'wipe_after' => 0,
);
&CheckParameter();
&UndumpFromFile();
&SelectImage();
$driver_profile = Selenium::Firefox::Profile->new;
$driver_profile->set_preference(
'intl.accept_languages' => 'en-US',
# 'general.useragent.override' => 'Mozilla/5.0 (iPhone; CPU iPhone OS 12_1 like Mac OS X) AppleWebKit/605.1.15',
'general.useragent.override' => 'Mozilla/5.0 (iPhone; U; CPU iPhone OS 3_0 like Mac OS X; en-us) AppleWebKit/528.18 (KHTML, like Gecko) Version/4.0 Mobile/7A341 Safari/528.16',
);
# $driver_profile->set_boolean_preference("options.headless" => 1);
$driver = Selenium::Remote::Driver->new( 'browser_name' => 'firefox',
'platform' => 'LINUX',
'remote_server_addr' => 'localhost',
'port' => 4444,
'firefox_profile' => $driver_profile,
'extra_capabilities' => {
'moz:firefoxOptions' => {
#"args" => [ "--headless" ],
},
},
);
# $driver = Selenium::Firefox->new( 'browser_name' => 'firefox',
# 'platform' => 'LINUX',
# 'binary' => '/usr/local/bin/geckodriver',
# 'firefox_profile' => $driver_profile,
# 'extra_capabilities' => {
# 'moz:firefoxOptions' => {
# #"args" => [ "--headless" ],
# },
# },
# );
$driver->set_implicit_wait_timeout(5000);
$driver->set_window_size(812, 375);
say 'starting...';
say $driver->get_title();
say $driver->get_user_agent();
}
&Init();
&Login();
&NewPost();
&Finish();
sub RndHashtagString {
my $i = shift;
my $RndArr = &RndArrItems($config{profile}{'adobebestprices'}{tags}, $i);
my $hastags = join(' ', @$RndArr[0..$#{$RndArr}]);
return $hastags;
}
sub RndArrItems {
my ($arr_ref, $num_picks) = @_;
# Shuffled list of indexes into @deck
my @shuffled_indexes = shuffle(0..$#{$arr_ref});
# Get just N of them.
my @pick_indexes = @shuffled_indexes[ 0 .. $num_picks - 1 ];
# Pick cards from @deck
my @picks;
for my $index (@pick_indexes) {
push(@picks, $$arr_ref[$index]);
}
return \@picks;
}
sub SelectImage {
&DirectoryListing();
&FindNewDataset();
$config{image_backslash} = $config{image_selected};
# $config{image_backslash} =~ s/\//\\/g;
print Dumper \%config;
}
sub Login {
say 'Logging in...';
$driver->get('https://instagram.com/accounts/login/?force_classic_login');
my $tree = HTML::TreeBuilder::XPath->new_from_content($driver->get_page_source());
&Rndwait(1,3);
if( $tree->exists($config{xpath}{input_username_classic}) && $tree->exists($config{xpath}{input_password_classic}) ) {
say 'Found: Login elements.';
# Username & password
$driver->find_element($config{xpath}{input_username_classic})->click;
$driver->send_keys_to_active_element('adobebestprices');
&Rndwait(1,3);
$driver->find_element($config{xpath}{input_password_classic})->click();
$driver->send_keys_to_active_element('vst#1337');
&Rndwait(1,3);
# Click login button
$driver->find_element($config{xpath}{button_login_classic})->click();
}
else {
die 'Not found: Login elements.';
}
}
sub NewPost {
&Rndwait(5,10); # We see the home screen
my $tree = HTML::TreeBuilder::XPath->new_from_content($driver->get_page_source());
# add to homescreen popup?
&ClickXpath($config{xpath}{button_addtohomescreen}, $tree, 0); # click cancel button
&ClickXpath($config{xpath}{button_newpost}, $tree); # click new post button
&Rndwait(5,10);
# Bypass file dialog using pyautogui
my $cmd = $config{pyautogui_cmd} . ' "' . $config{image_backslash} . '"'; # image path needs to use backslash for python
my $ret = system($cmd) or die "system $cmd failed: $?";
# print `$cmd`;
# system($cmd);
# &Rndwait(30,45);
&FillNewPost();
}
sub FillNewPost {
# Wait for page reload after selecting an image
wait_until { $driver->find_element($config{xpath}{button_next}) };
my $tree = HTML::TreeBuilder::XPath->new_from_content($driver->get_page_source());
# Expand button
&ClickXpath($config{xpath}{button_expand}, $tree, 0); # click expand button to show image in full size
&Rndwait(2,4);
&ClickXpath($config{xpath}{button_next}, $tree); # click next button
&Rndwait(5,10);
# Caption
my $tree2 = HTML::TreeBuilder::XPath->new_from_content($driver->get_page_source());
my $profile = $config{profile_selected};
my $caption;
my $hastags = &RndHashtagString(9);
if ($config{profile}{$profile}{'filename_as_title'}) {
my $filename = basename($config{image_selected});
$filename =~ s/(NO INSTALL)|(SymLink Installer)//g;
$filename =~ s/( , )|(\.[^.]+$)//g;
$caption = "$filename\n\n" . $hastags;
}
&ClickXpath($config{xpath}{textarea_caption}, $tree2);
&Rndwait(5,6);
$driver->send_keys_to_active_element($caption);
&Rndwait(5,10);
# Share
&ClickXpath($config{xpath}{button_share}, $tree2);
&Rndwait(20,40);
}
sub Finish {
say 'Sleep and then quit';
&Rndwait(5,5);
&AddImageToDB();
&WipeImage() if $config{wipe_after};
$driver->quit();
}
sub ClickXpath {
my $die = 1;
my ($xpath, $tree, $die) = @_;
if( $tree->exists($xpath) ) {
say "Found: $xpath";
$driver->find_element($xpath)->click();
}
else {
die "Not found: $xpath" if $die;
warn "Not found: $xpath" if !$die;
}
}
sub Rndwait {
my ($minimum, $maximum) = @_;
# $seconds = $minimum + int(rand($maximum - $minimum));
$seconds = $minimum + rand($maximum - $minimum);
$milliseconds = int($seconds * 1000);
say "Sleeping for ${milliseconds}ms now...";
$driver->pause($milliseconds);
}
sub dumpToFile {
# &Delimiter((caller(0))[3]);
my ($filepath, $ref) = @_;
# DATA DUMPER UTF8 HACK
# no warnings 'redefine';
local *Data::Dumper::qquote = sub { qq["${\(shift)}"] };
local $Data::Dumper::Useperl = 1;
open my $FILE, '>:encoding(UTF-8)', $filepath;
print $FILE Dumper $ref;
close $FILE;
}
sub Delimiter {
my $SubName = shift;
print "\n" . "-" x 80 . "\nSUB " . $SubName . "\n" . '-' x 80 . "\n";
}
sub CheckParameter {
&Delimiter((caller(0))[3]);
GetOptions ('profile=s' => \$config{'profile_selected'}) or die &PrintUsage();
die &PrintUsage() if !$config{'profile_selected'};
my $profile = $config{'profile_selected'};
if (!exists $config{'profile'}{$profile}) {
print "Profile '$config{'profile'}' does not exist.\n";
&PrintUsage();
die;
}
}
sub UndumpFromFile {
&Delimiter((caller(0))[3]);
my $profile = $config{profile_selected};
if (-e $config{profile}{$profile}{'DBFilepath'}) {
my $json = read_file($config{profile}{$profile}{'DBFilepath'}, { binmode => ':raw' });
if (!$json) {
warn "DB file $config{'profile'}{$profile}{'DBFilepath'} is empty.\n";
return;
}
%{$config{db}} = %{ decode_json $json };
print "INFO: $config{'profile'}{$profile}{'DBFilepath'} has " . scalar(keys(%{$config{db}})) . " keys.\n";
}
elsif ( !-e $config{'profile'}{$profile}{'DBFilepath'} ) {
print "INFO: NO DB file found at $config{'profile'}{$profile}{'DBFilepath'}. Creating now... ";
write_file( $config{'profile'}{$profile}{'DBFilepath'}, '' );
&UndumpFromFile();
}
}
sub PrintUsage {
print "Usage: $0 --profile *name*\n";
print "Following profiles are available:\n";
print "* $_\n" for keys( %{$config{'profile'}} );
}
sub DirectoryListing {
&Delimiter((caller(0))[3]);
my $profile = $config{profile_selected};
my @files = glob ( "$config{profile}{$profile}{imageDir}/*" );
%{$config{images_available}} = map { $_ => { 'FILEPATH' => "$_" } } @files;
}
sub FindNewDataset {
&Delimiter((caller(0))[3]);
my $i = 0;
for my $key (keys %{$config{images_available}}) {
if (exists $config{db}{$key}) {
print "OLD: $key\n";
}
elsif (!exists $config{db}{$key}) {
print "NEW: $key\n";
$config{image_selected} = $key;
last;
}
$i++;
}
if ($i == scalar(keys(%{$config{images_available}}))) {
die "\nNO NEW FILES AVAILABLE.\n";
}
}
sub AddImageToDB {
&Delimiter((caller(0))[3]);
my $profile = $config{profile_selected};
my $selected = $config{image_selected};
$config{'images_available'}{$selected}{'TIMESTAMP_UPLOADED'} = sprintf ( "%04d%02d%02d_%02d%02d%02d", $year+1900,$mon+1,$mday,$hour,$min,$sec);
$config{db}{$selected} = $config{images_available}{$selected};
my $json = encode_json(\%{$config{db}});
write_file($config{profile}{$profile}{'DBFilepath'}, { binmode => ':raw' }, $json);
}
sub WipeImage {
&Delimiter((caller(0))[3]);
my $image = $config{image_selected};
print "Deleting $image...";
unlink($image) or die "Could not delete $image!\n";
print " done.\n";
}
# SERVER:
# java -Dwebdriver.gecko.driver=C:\Users\vstbestprices\Seafile\INSTAFEED_SYNC\selenium\geckodriver.exe -jar C:\Users\vstbestprices\Seafile\INSTAFEED_SYNC\selenium\selenium-server-standalone-3.141.59.jar
# java -jar /home/pi/projects/instafeed/selenium/selenium-server-standalone-3.141.59.jar