rewrite to instaloader

This commit is contained in:
horhik 2021-08-31 23:35:05 +03:00
parent b6e0a8e0f2
commit 931b9c3169
2 changed files with 173 additions and 75 deletions

View File

@ -1,13 +1,88 @@
2652305285901238151_20813901
2652274963650205278_20813901
2652305285901238151_20813901
2652274963650205278_20813901
2651694333053007764_20813901
2646496271003188544_20813901
2645015644127356684_20813901
2652305285901238151_20813901
2652274963650205278_20813901
2651694333053007764_20813901
https://scontent-arn2-2.cdninstagram.com/v/t51.2885-15/fr/e15/s1080x1080/241149428_371121387811512_8598223234258834354_n.jpg?_nc_ht=scontent-arn2-2.cdninstagram.com&_nc_cat=100&_nc_ohc=bo-iOMea1xEAX-Y-1pw&edm=AAuNW_gBAAAA&ccb=7-4&oh=7ea28282289538423f64d378ab434304&oe=6134D838&_nc_sid=498da5
https://scontent-arn2-2.cdninstagram.com/v/t51.2885-15/fr/e15/s1080x1080/241149428_371121387811512_8598223234258834354_n.jpg?_nc_ht=scontent-arn2-2.cdninstagram.com&_nc_cat=100&_nc_ohc=bo-iOMea1xEAX-Y-1pw&edm=AAuNW_gBAAAA&ccb=7-4&oh=7ea28282289538423f64d378ab434304&oe=6134D838&_nc_sid=498da5
https://scontent-arn2-2.cdninstagram.com/v/t51.2885-15/fr/e15/s1080x1080/241149428_371121387811512_8598223234258834354_n.jpg?_nc_ht=scontent-arn2-2.cdninstagram.com&_nc_cat=100&_nc_ohc=bo-iOMea1xEAX-Y-1pw&edm=AAuNW_gBAAAA&ccb=7-4&oh=7ea28282289538423f64d378ab434304&oe=6134D838&_nc_sid=498da5
https://scontent-arn2-2.cdninstagram.com/v/t51.2885-15/fr/e15/s1080x1080/241149428_371121387811512_8598223234258834354_n.jpg?_nc_ht=scontent-arn2-2.cdninstagram.com&_nc_cat=100&_nc_ohc=bo-iOMea1xEAX-Y-1pw&edm=AAuNW_gBAAAA&ccb=7-4&oh=7ea28282289538423f64d378ab434304&oe=6134D838&_nc_sid=498da5
https://scontent-arn2-1.cdninstagram.com/v/t51.2885-15/fr/e15/s1080x1080/240949315_577391756948167_8590311985599834178_n.jpg?_nc_ht=scontent-arn2-1.cdninstagram.com&_nc_cat=107&_nc_ohc=i_kbTvLltgAAX9NgWYB&edm=AAuNW_gBAAAA&ccb=7-4&oh=cffaea42b292f83a697bd78352a4efde&oe=61354D23&_nc_sid=498da5
https://scontent-arn2-1.cdninstagram.com/v/t51.2885-15/fr/e15/s1080x1080/240765768_1177279109428110_4197557088112637930_n.jpg?_nc_ht=scontent-arn2-1.cdninstagram.com&_nc_cat=106&_nc_ohc=oSmg32hx4RAAX_nbhO1&edm=AAuNW_gBAAAA&ccb=7-4&oh=64c13ef512feb233dd71deb38cc4a893&oe=6135CEDF&_nc_sid=498da5
https://scontent-arn2-1.cdninstagram.com/v/t51.2885-15/fr/e15/s1080x1080/240808572_204950288201049_1221298445329202557_n.jpg?_nc_ht=scontent-arn2-1.cdninstagram.com&_nc_cat=109&_nc_ohc=43cFdDwUWA0AX9VxbBF&edm=AAuNW_gBAAAA&ccb=7-4&oh=ffedb9a6c9b26629049c4be00d79cc5c&oe=6134967D&_nc_sid=498da5
https://scontent-arn2-1.cdninstagram.com/v/t51.2885-15/fr/e15/s1080x1080/240405967_4304262632942257_7997820371096875371_n.jpg?_nc_ht=scontent-arn2-1.cdninstagram.com&_nc_cat=101&_nc_ohc=jZbRKTxHHrUAX9TRXTH&edm=AAuNW_gBAAAA&ccb=7-4&oh=546845a544e4a3eaf65fae831c4cc83b&oe=61353580&_nc_sid=498da5
https://scontent-arn2-1.cdninstagram.com/v/t51.2885-15/e35/240407270_224345876364743_2300607399595408876_n.jpg?_nc_ht=scontent-arn2-1.cdninstagram.com&_nc_cat=111&_nc_ohc=tisMYC1i5jcAX8CbBYA&edm=AAuNW_gBAAAA&ccb=7-4&oh=0abdcbdd40ab2b9fb9813282883ae784&oe=6135D3DA&_nc_sid=498da5
https://scontent-arn2-1.cdninstagram.com/v/t51.2885-15/fr/e15/s1080x1080/240120448_548313153045862_3543535040421349554_n.jpg?_nc_ht=scontent-arn2-1.cdninstagram.com&_nc_cat=110&_nc_ohc=NYEW-9RJ35QAX9AmO28&edm=AAuNW_gBAAAA&ccb=7-4&oh=bd7263e2e5e93f241056217f663ca268&oe=61364553&_nc_sid=498da5
https://scontent-arn2-1.cdninstagram.com/v/t51.2885-15/fr/e15/s1080x1080/239636822_2861261000805868_7595868593720138476_n.jpg?_nc_ht=scontent-arn2-1.cdninstagram.com&_nc_cat=104&_nc_ohc=M3SNVh2_3KcAX_Tu10X&edm=AAuNW_gBAAAA&ccb=7-4&oh=df6b966381f8aa0f31854facc9bc5bfe&oe=6134BE6E&_nc_sid=498da5
https://scontent-arn2-1.cdninstagram.com/v/t51.2885-15/fr/e15/s1080x1080/238123420_4420019304727413_8132976223720701970_n.jpg?_nc_ht=scontent-arn2-1.cdninstagram.com&_nc_cat=109&_nc_ohc=Cz7azhTBk5MAX-ktNtu&edm=AAuNW_gBAAAA&ccb=7-4&oh=3c530ec2222ff2de15fb45c18b6057dc&oe=6134E281&_nc_sid=498da5
https://scontent-arn2-1.cdninstagram.com/v/t51.2885-15/e35/s1080x1080/232166421_591997088474310_2247738718445392728_n.jpg?_nc_ht=scontent-arn2-1.cdninstagram.com&_nc_cat=106&_nc_ohc=YR4zz_FPxfIAX_0I602&edm=AAuNW_gBAAAA&ccb=7-4&oh=d3e775926b73ec6359d7d8b8105238aa&oe=61348D73&_nc_sid=498da5
https://scontent-arn2-2.cdninstagram.com/v/t51.2885-15/fr/e15/s1080x1080/236462943_310079907562944_9221070139441343481_n.jpg?_nc_ht=scontent-arn2-2.cdninstagram.com&_nc_cat=100&_nc_ohc=MZCF2gET2ZUAX_GKflD&edm=AAuNW_gBAAAA&ccb=7-4&oh=1755e02d84159699e3d07c5ab122f074&oe=6135F8B2&_nc_sid=498da5
https://scontent-arn2-1.cdninstagram.com/v/t51.2885-15/fr/e15/s1080x1080/235767719_507060393925801_7852045727422519485_n.jpg?_nc_ht=scontent-arn2-1.cdninstagram.com&_nc_cat=101&_nc_ohc=y8E3rpIHy6oAX9lbwqt&edm=AAuNW_gBAAAA&ccb=7-4&oh=af6ddf1ad5be7899acc8142cf1ded291&oe=61363318&_nc_sid=498da5
https://scontent-arn2-1.cdninstagram.com/v/t51.2885-15/fr/e15/s1080x1080/235530908_184653126929339_100159949412461740_n.jpg?_nc_ht=scontent-arn2-1.cdninstagram.com&_nc_cat=111&_nc_ohc=mG9tixLj3ZoAX9uc72y&edm=APU89FABAAAA&ccb=7-4&oh=a8e16e0405fcf7df342f4a1f14dbddc4&oe=613579F1&_nc_sid=86f79a
https://scontent-arn2-1.cdninstagram.com/v/t51.2885-15/e15/234403871_518406485935059_235285499094512765_n.jpg?_nc_ht=scontent-arn2-1.cdninstagram.com&_nc_cat=103&_nc_ohc=QCSahbSbDYkAX9fgDam&edm=APU89FABAAAA&ccb=7-4&oh=3b1208eec2740f1b710a2af0c4aa1466&oe=6134DC16&_nc_sid=86f79a
https://scontent-arn2-1.cdninstagram.com/v/t51.2885-15/fr/e15/s1080x1080/231597128_947602159131975_5703631711279451018_n.jpg?_nc_ht=scontent-arn2-1.cdninstagram.com&_nc_cat=103&_nc_ohc=dLTnbJzzmxwAX9Gvq6U&edm=APU89FABAAAA&ccb=7-4&oh=de16554471e64c2faac8fe6b09463a7e&oe=61355162&_nc_sid=86f79a
https://scontent-arn2-2.cdninstagram.com/v/t51.2885-15/fr/e15/s1080x1080/233641559_128290642805412_9114466279788664929_n.jpg?_nc_ht=scontent-arn2-2.cdninstagram.com&_nc_cat=100&_nc_ohc=ta6E2nlpnx0AX9b6bLo&edm=APU89FABAAAA&ccb=7-4&oh=0cf96cfa0f29cee10002efc52dd374f0&oe=613551E2&_nc_sid=86f79a
https://scontent-arn2-2.cdninstagram.com/v/t51.2885-15/fr/e15/s1080x1080/229973879_1765862900290412_8758221538809641961_n.jpg?_nc_ht=scontent-arn2-2.cdninstagram.com&_nc_cat=108&_nc_ohc=uyAaiR5Qxg8AX8HJzWZ&edm=APU89FABAAAA&ccb=7-4&oh=35171da6548ceefd2a315ca73ec82991&oe=61349F03&_nc_sid=86f79a
https://scontent-arn2-1.cdninstagram.com/v/t51.2885-15/fr/e15/s1080x1080/227490359_118315717095877_244527634091302463_n.jpg?_nc_ht=scontent-arn2-1.cdninstagram.com&_nc_cat=101&_nc_ohc=voQmIV-gwvEAX-Hz-nb&edm=APU89FABAAAA&ccb=7-4&oh=1dcbeb39f6b1b30211284aa5064b1b47&oe=61366966&_nc_sid=86f79a
https://scontent-arn2-1.cdninstagram.com/v/t51.2885-15/fr/e15/s1080x1080/226128418_145120117741286_3814478666339256538_n.jpg?_nc_ht=scontent-arn2-1.cdninstagram.com&_nc_cat=102&_nc_ohc=tdCxznMku0kAX9_1RoO&edm=APU89FABAAAA&ccb=7-4&oh=4e70757e6d00d48db71c2d392f7f81a6&oe=61356654&_nc_sid=86f79a
https://scontent-arn2-1.cdninstagram.com/v/t51.2885-15/fr/e15/s1080x1080/223185735_182837753902221_3824514401800150302_n.jpg?_nc_ht=scontent-arn2-1.cdninstagram.com&_nc_cat=109&_nc_ohc=bcnHgTtmvrcAX9Ahn1r&edm=APU89FABAAAA&ccb=7-4&oh=f7383e0ac81ad07604916375f820d054&oe=61361EBE&_nc_sid=86f79a
https://scontent-arn2-2.cdninstagram.com/v/t51.2885-15/e35/s1080x1080/223792848_555622418807765_3562466016925368279_n.jpg?_nc_ht=scontent-arn2-2.cdninstagram.com&_nc_cat=105&_nc_ohc=l0Pp-PXoduwAX-lqHaI&edm=APU89FABAAAA&ccb=7-4&oh=10d1ace167cc187241e6fcca4d42a692&oe=61367334&_nc_sid=86f79a
https://scontent-arn2-1.cdninstagram.com/v/t51.2885-15/fr/e15/s1080x1080/222990810_1277321709356466_3963408562999868016_n.jpg?_nc_ht=scontent-arn2-1.cdninstagram.com&_nc_cat=106&_nc_ohc=NkZ5z3wFMZsAX_vhuO3&edm=APU89FABAAAA&ccb=7-4&oh=09587eca99a4d5e380c1fd4e4f81a9c4&oe=613634EF&_nc_sid=86f79a
https://scontent-arn2-1.cdninstagram.com/v/t51.2885-15/e15/219931221_613662882929346_3849002147372281445_n.jpg?_nc_ht=scontent-arn2-1.cdninstagram.com&_nc_cat=106&_nc_ohc=RxIs04GW3hAAX-Hk6t8&edm=APU89FABAAAA&ccb=7-4&oh=9a17c5c09fa90016a7865d97295abd3b&oe=61365CDE&_nc_sid=86f79a
https://scontent-arn2-1.cdninstagram.com/v/t51.2885-15/fr/e15/s1080x1080/218311271_497241161568664_3856276543570433414_n.jpg?_nc_ht=scontent-arn2-1.cdninstagram.com&_nc_cat=104&_nc_ohc=C5B6nFBZ7DsAX9d3MAt&edm=APU89FABAAAA&ccb=7-4&oh=ffdbd4890b4c9ee1f6a30e4f52fe44a7&oe=61358271&_nc_sid=86f79a
https://scontent-arn2-1.cdninstagram.com/v/t51.2885-15/fr/e15/s1080x1080/217957349_539541080617564_9087787356922427301_n.jpg?_nc_ht=scontent-arn2-1.cdninstagram.com&_nc_cat=104&_nc_ohc=hNeRV-OEyukAX9tWbK3&edm=APU89FABAAAA&ccb=7-4&oh=96b28b83855f115d0201c9bd1e8eb07e&oe=6135DE51&_nc_sid=86f79a
https://scontent-arn2-2.cdninstagram.com/v/t51.2885-15/fr/e15/p1080x1080/217535320_3129602253922548_9183563484398349742_n.jpg?_nc_ht=scontent-arn2-2.cdninstagram.com&_nc_cat=100&_nc_ohc=dKTp9P5q3i0AX8W--bf&edm=APU89FABAAAA&ccb=7-4&oh=5f632e9549fc3673d9e074c7e0bb38ee&oe=613678E8&_nc_sid=86f79a
https://scontent-arn2-1.cdninstagram.com/v/t51.2885-15/fr/e15/s1080x1080/212693581_985164355558729_301808223745602342_n.jpg?_nc_ht=scontent-arn2-1.cdninstagram.com&_nc_cat=101&_nc_ohc=nCoHjbN_KxkAX_1OgWw&edm=APU89FABAAAA&ccb=7-4&oh=b33eed50ee36040f0779f5402c0a086a&oe=6134ADAB&_nc_sid=86f79a
https://scontent-arn2-1.cdninstagram.com/v/t51.2885-15/fr/e15/s1080x1080/213218024_226167215893331_5576683373428283299_n.jpg?_nc_ht=scontent-arn2-1.cdninstagram.com&_nc_cat=111&_nc_ohc=74HB7fbNGEYAX_XMWin&edm=APU89FABAAAA&ccb=7-4&oh=a02e319d65695868824a26ad3d407708&oe=6135EF74&_nc_sid=86f79a
https://scontent-arn2-1.cdninstagram.com/v/t51.2885-15/fr/e15/s1080x1080/209618751_836345467019975_9002621446762637047_n.jpg?_nc_ht=scontent-arn2-1.cdninstagram.com&_nc_cat=111&_nc_ohc=LLgWa3TIGq4AX9LIdi5&edm=APU89FABAAAA&ccb=7-4&oh=1d1ca3b687d535dec0334795d7202f06&oe=61366D62&_nc_sid=86f79a
https://scontent-arn2-1.cdninstagram.com/v/t51.2885-15/fr/e15/s1080x1080/210479308_1205676116522862_5988290455740006236_n.jpg?_nc_ht=scontent-arn2-1.cdninstagram.com&_nc_cat=106&_nc_ohc=V215X3CUE6UAX97450E&edm=APU89FABAAAA&ccb=7-4&oh=cfc5b272d7683f8e7ee982dbc7e526ad&oe=6135E040&_nc_sid=86f79a
https://scontent-arn2-2.cdninstagram.com/v/t51.2885-15/fr/e15/s1080x1080/205421891_2938508826393636_1618666856523390734_n.jpg?_nc_ht=scontent-arn2-2.cdninstagram.com&_nc_cat=100&_nc_ohc=TKPK8wJowGUAX8GRfq5&edm=APU89FABAAAA&ccb=7-4&oh=93b9391b45f26f62f347e31d7f55f890&oe=613618D4&_nc_sid=86f79a
https://scontent-arn2-2.cdninstagram.com/v/t51.2885-15/fr/e15/s1080x1080/203668032_254110193146925_3519386353012058384_n.jpg?_nc_ht=scontent-arn2-2.cdninstagram.com&_nc_cat=105&_nc_ohc=veR2OxwvciYAX9G3cL1&edm=APU89FABAAAA&ccb=7-4&oh=f3e2f806fd51f7e0e281cf22b60b0434&oe=61353D12&_nc_sid=86f79a
https://scontent-arn2-2.cdninstagram.com/v/t51.2885-15/fr/e15/s1080x1080/202950755_507373160407536_2488653593779694524_n.jpg?_nc_ht=scontent-arn2-2.cdninstagram.com&_nc_cat=100&_nc_ohc=TOckhcQHT6IAX8kzhGB&edm=APU89FABAAAA&ccb=7-4&oh=e18a92b2585cdd5ebc6466b04de2802d&oe=6135B72B&_nc_sid=86f79a
https://scontent-arn2-1.cdninstagram.com/v/t51.2885-15/e35/201803433_1169633530115740_6365930850205471794_n.jpg?_nc_ht=scontent-arn2-1.cdninstagram.com&_nc_cat=104&_nc_ohc=NCSJwcfSXj4AX_in3BG&edm=APU89FABAAAA&ccb=7-4&oh=bfd619abdfb6fd64f1c254d8f7132f6d&oe=6130C95E&_nc_sid=86f79a
https://scontent-arn2-1.cdninstagram.com/v/t51.2885-15/fr/e15/s1080x1080/201651442_181717820556042_2834946618060013413_n.jpg?_nc_ht=scontent-arn2-1.cdninstagram.com&_nc_cat=106&_nc_ohc=xxBCCC4bRwwAX-7KfWS&edm=APU89FABAAAA&ccb=7-4&oh=887803eebd43ab146d350f49c591e4b0&oe=613568E4&_nc_sid=86f79a
https://scontent-arn2-1.cdninstagram.com/v/t51.2885-15/fr/e15/s1080x1080/200880642_4153452424701498_4153909667126043299_n.jpg?_nc_ht=scontent-arn2-1.cdninstagram.com&_nc_cat=106&_nc_ohc=bnUCA6AXo3oAX9MlHKx&edm=APU89FABAAAA&ccb=7-4&oh=e9c163ea21b20926d236761ebcfb067e&oe=61351D45&_nc_sid=86f79a
https://scontent-arn2-2.cdninstagram.com/v/t51.2885-15/e35/s1080x1080/199658351_501493110973008_5762881284938168867_n.jpg?_nc_ht=scontent-arn2-2.cdninstagram.com&_nc_cat=100&_nc_ohc=kfxJh96kECUAX-iubA2&edm=APU89FABAAAA&ccb=7-4&oh=d0186432ea11777a97903545e09d53ce&oe=61355BB3&_nc_sid=86f79a
https://scontent-arn2-2.cdninstagram.com/v/t51.2885-15/fr/e15/s1080x1080/198867674_233258088605588_8632653156210643482_n.jpg?_nc_ht=scontent-arn2-2.cdninstagram.com&_nc_cat=108&_nc_ohc=nKBbqZv1BtAAX8eZioz&edm=APU89FABAAAA&ccb=7-4&oh=93869154370c8d7632001ffdea7f8e7b&oe=61352413&_nc_sid=86f79a
https://scontent-arn2-1.cdninstagram.com/v/t51.2885-15/e35/s1080x1080/197029392_474739396965402_3633055018936076172_n.jpg?_nc_ht=scontent-arn2-1.cdninstagram.com&_nc_cat=106&_nc_ohc=yAHOjmzP2dUAX-UoNBY&edm=APU89FABAAAA&ccb=7-4&oh=9a2cd104e4ccccfca577f945a0e5ba6e&oe=61364E3E&_nc_sid=86f79a
https://scontent-arn2-2.cdninstagram.com/v/t51.2885-15/e35/s1080x1080/195450601_2949883025333688_9080733781712780903_n.jpg?_nc_ht=scontent-arn2-2.cdninstagram.com&_nc_cat=100&_nc_ohc=1-PdAg09Pg0AX-jCdCd&edm=APU89FABAAAA&ccb=7-4&oh=bf3042c5ab6025a0809313be687fca77&oe=6134D4F6&_nc_sid=86f79a
https://scontent-arn2-1.cdninstagram.com/v/t51.2885-15/fr/e15/s1080x1080/195205172_474425096985129_7328468501632484576_n.jpg?_nc_ht=scontent-arn2-1.cdninstagram.com&_nc_cat=109&_nc_ohc=xS8oDcqK3OAAX92bubR&edm=APU89FABAAAA&ccb=7-4&oh=b19b455dfd10d1db0649472e0fd1e00f&oe=6135A876&_nc_sid=86f79a
https://scontent-arn2-1.cdninstagram.com/v/t51.2885-15/fr/e15/s1080x1080/191763767_198904055300805_4877995664798724755_n.jpg?_nc_ht=scontent-arn2-1.cdninstagram.com&_nc_cat=109&_nc_ohc=EUZLiLO8vTIAX_opd2_&edm=APU89FABAAAA&ccb=7-4&oh=cd6de8847d368a4707b752d833661b9f&oe=61355816&_nc_sid=86f79a
https://scontent-arn2-2.cdninstagram.com/v/t51.2885-15/e35/s1080x1080/191545960_315012413334044_9158434354744192451_n.jpg?_nc_ht=scontent-arn2-2.cdninstagram.com&_nc_cat=108&_nc_ohc=UH2VAX11ozIAX_XKCg_&edm=APU89FABAAAA&ccb=7-4&oh=1a723ddb1530b82b8c3617d1f50e409b&oe=61360626&_nc_sid=86f79a
https://scontent-arn2-2.cdninstagram.com/v/t51.2885-15/e35/s1080x1080/188056185_490629148869701_9150816595022273736_n.jpg?_nc_ht=scontent-arn2-2.cdninstagram.com&_nc_cat=105&_nc_ohc=Pvsn2MziDEUAX8xWNIE&edm=APU89FABAAAA&ccb=7-4&oh=ffbed3edba2be498c7a5464cf3bdaf02&oe=6134E1F3&_nc_sid=86f79a
https://scontent-arn2-1.cdninstagram.com/v/t51.2885-15/e35/s1080x1080/189185941_170285195023162_1668156105861768827_n.jpg?_nc_ht=scontent-arn2-1.cdninstagram.com&_nc_cat=110&_nc_ohc=g1HKTU391oQAX9EpBsC&edm=APU89FABAAAA&ccb=7-4&oh=d4972e3c7104ec3daad92d34784541fa&oe=6134B850&_nc_sid=86f79a
https://scontent-arn2-1.cdninstagram.com/v/t51.2885-15/e35/s1080x1080/187389787_1113836829100847_7135111242742978177_n.jpg?_nc_ht=scontent-arn2-1.cdninstagram.com&_nc_cat=111&_nc_ohc=WMK2npI40YgAX_1-zQ7&edm=APU89FABAAAA&ccb=7-4&oh=2c331054ea287461cf25815700a86326&oe=613517E3&_nc_sid=86f79a
https://scontent-arn2-2.cdninstagram.com/v/t51.2885-15/fr/e15/s1080x1080/187312025_512712279777812_8559538749855227257_n.jpg?_nc_ht=scontent-arn2-2.cdninstagram.com&_nc_cat=108&_nc_ohc=JkvqUUfIBOoAX8E9FGL&edm=APU89FABAAAA&ccb=7-4&oh=97cb37c4b0d660d16cf46e76b31296b0&oe=6135DEEC&_nc_sid=86f79a
https://scontent-arn2-2.cdninstagram.com/v/t51.2885-15/fr/e15/s1080x1080/186366157_800215623941621_2000823382543910240_n.jpg?_nc_ht=scontent-arn2-2.cdninstagram.com&_nc_cat=105&_nc_ohc=p5R0BX6Wy1oAX_UXQ2P&edm=APU89FABAAAA&ccb=7-4&oh=ea6853e0f188ed6ae9c71ede16a578b3&oe=613668A7&_nc_sid=86f79a
https://scontent-arn2-1.cdninstagram.com/v/t51.2885-15/fr/e15/s1080x1080/187564241_942578756502611_4765888019454261031_n.jpg?_nc_ht=scontent-arn2-1.cdninstagram.com&_nc_cat=111&_nc_ohc=01TAA-7vGWMAX8Ztqrs&edm=APU89FABAAAA&ccb=7-4&oh=403e9526e976f9a8ad08385c617f91bc&oe=6135F44F&_nc_sid=86f79a
https://scontent-arn2-2.cdninstagram.com/v/t51.2885-15/e15/185723073_2198391080297609_6580670389760907289_n.jpg?_nc_ht=scontent-arn2-2.cdninstagram.com&_nc_cat=105&_nc_ohc=6LIiXKQobFUAX_fL1ox&edm=APU89FABAAAA&ccb=7-4&oh=5994f117afbab673755e419080254a56&oe=613556D4&_nc_sid=86f79a
https://scontent-arn2-1.cdninstagram.com/v/t51.2885-15/fr/e15/s1080x1080/183695967_1418193828519157_6542317215135623670_n.jpg?_nc_ht=scontent-arn2-1.cdninstagram.com&_nc_cat=101&_nc_ohc=Ee2WIN0VkEQAX_eS1sL&edm=APU89FABAAAA&ccb=7-4&oh=d9965c7bdbfce483bd1b22b03f807d09&oe=6135B771&_nc_sid=86f79a
https://scontent-arn2-1.cdninstagram.com/v/t51.2885-15/fr/e15/s1080x1080/183457472_579721816246486_840904018795813029_n.jpg?_nc_ht=scontent-arn2-1.cdninstagram.com&_nc_cat=110&_nc_ohc=Vpl_PKWVEl0AX-UiOaj&edm=APU89FABAAAA&ccb=7-4&oh=748e3b790cd5f4b64109db8343acce16&oe=61358895&_nc_sid=86f79a
https://scontent-arn2-1.cdninstagram.com/v/t51.2885-15/e35/s1080x1080/183948480_4209427269120669_1877224752106959647_n.jpg?_nc_ht=scontent-arn2-1.cdninstagram.com&_nc_cat=109&_nc_ohc=dicTAKl4uoEAX_xh5Ji&edm=APU89FABAAAA&ccb=7-4&oh=3fc58d3206926421aa75806126f0270c&oe=61357E9F&_nc_sid=86f79a
https://scontent-arn2-1.cdninstagram.com/v/t51.2885-15/e35/s1080x1080/180686907_311383870497717_6555330850740227765_n.jpg?_nc_ht=scontent-arn2-1.cdninstagram.com&_nc_cat=109&_nc_ohc=58DmtdQUyP8AX8QfTHc&edm=APU89FABAAAA&ccb=7-4&oh=64def9fdac7cd439b32121ed2c619272&oe=6134EDC6&_nc_sid=86f79a
https://scontent-arn2-1.cdninstagram.com/v/t51.2885-15/fr/e15/s1080x1080/180700681_152537946822853_2941835776129419295_n.jpg?_nc_ht=scontent-arn2-1.cdninstagram.com&_nc_cat=101&_nc_ohc=1UkfYpU1JV0AX8BvQt6&edm=APU89FABAAAA&ccb=7-4&oh=c818342e3ece4b9540cdf6ff727dd65e&oe=6134CFB3&_nc_sid=86f79a
https://scontent-arn2-1.cdninstagram.com/v/t51.2885-15/e35/179884622_2874782222771250_6146433950408851225_n.jpg?_nc_ht=scontent-arn2-1.cdninstagram.com&_nc_cat=106&_nc_ohc=OB-G-F_WlqUAX9nkFDv&edm=APU89FABAAAA&ccb=7-4&oh=c04257e6b44525b6a9e97ae060eae0e3&oe=61312C7D&_nc_sid=86f79a
https://scontent-arn2-1.cdninstagram.com/v/t51.2885-15/e35/178838485_127062296145686_5488593871625263991_n.jpg?_nc_ht=scontent-arn2-1.cdninstagram.com&_nc_cat=102&_nc_ohc=-gxwltUfEUsAX8faCfy&edm=APU89FABAAAA&ccb=7-4&oh=461c77ece28c73ed47162439a9fbabb5&oe=6130AF41&_nc_sid=86f79a
https://scontent-arn2-1.cdninstagram.com/v/t51.2885-15/e15/178139942_487208062717079_5261093317558879579_n.jpg?_nc_ht=scontent-arn2-1.cdninstagram.com&_nc_cat=111&_nc_ohc=3loQW_MBI5gAX_m9DNU&edm=APU89FABAAAA&ccb=7-4&oh=1f3fd37786f85ef1fe41db0fe7a0de73&oe=6135254C&_nc_sid=86f79a
https://scontent-arn2-1.cdninstagram.com/v/t51.2885-15/fr/e15/s1080x1080/178513389_186136923331615_1950845241997729233_n.jpg?_nc_ht=scontent-arn2-1.cdninstagram.com&_nc_cat=107&_nc_ohc=Fvo37w6wgU4AX_plSqS&edm=APU89FABAAAA&ccb=7-4&oh=676c426b025b0a3e2013088b83f97c57&oe=61364A5E&_nc_sid=86f79a
https://scontent-arn2-2.cdninstagram.com/v/t51.2885-15/e35/s1080x1080/178084274_202477628130401_5460890551641389306_n.jpg?_nc_ht=scontent-arn2-2.cdninstagram.com&_nc_cat=105&_nc_ohc=LpKAvZh9fqoAX_Izo3u&edm=APU89FABAAAA&ccb=7-4&oh=513b16c307e5edef71efda59ee9f8309&oe=61352527&_nc_sid=86f79a
https://scontent-arn2-1.cdninstagram.com/v/t51.2885-15/fr/e15/s1080x1080/178483042_4785693361447402_7732882326298378111_n.jpg?_nc_ht=scontent-arn2-1.cdninstagram.com&_nc_cat=110&_nc_ohc=5wHoUrhoGb8AX-oYWkY&edm=APU89FABAAAA&ccb=7-4&oh=ab996f43b62e33f647e7112890a5f0f5&oe=6134D9AA&_nc_sid=86f79a
https://scontent-arn2-1.cdninstagram.com/v/t51.2885-15/fr/e15/s1080x1080/177766139_1596674390523875_1655574052429671236_n.jpg?_nc_ht=scontent-arn2-1.cdninstagram.com&_nc_cat=111&_nc_ohc=0kCOBppIbRgAX8SxrDW&edm=APU89FABAAAA&ccb=7-4&oh=33609996bba956ef89fd291467a9b253&oe=61362269&_nc_sid=86f79a

View File

@ -1,12 +1,9 @@
import os
import sys
import requests
from instabot import Bot
from mastodon import Mastodon
from colorama import Fore, Back, Style
import glob
cookie_del = glob.glob("config/*cookie.json")
os.remove(cookie_del[0])
from instaloader import Profile, Instaloader
id_filename = "/app/already_posted.txt"
f = open(id_filename, "a")
@ -18,11 +15,11 @@ username = sys.argv[2]
passwd = sys.argv[3]
mastodon_token = sys.argv[4]
print(Fore.GREEN + '🚀 > Loginning into Instagram...')
print(Fore.GREEN + '🚀 > Connecting to Instagram...')
print(Style.RESET_ALL)
bot = Bot()
print(username, passwd)
bot.login(username = username, password = passwd)
L = Instaloader()
profile = Profile.from_username(L.context, fetched_user)
print(Fore.GREEN + '🚀 > Connecting to Mastodon/Pixelfed...')
print(Style.RESET_ALL)
@ -32,75 +29,101 @@ mastodon = Mastodon(
# api_base_url = 'https://pixelfed.tokyo/'
)
def get_post(media_id):
print(Fore.YELLOW + '🔃 > getting post: ' + media_id)
print(Style.RESET_ALL)
media = bot.get_media_info(media_id)[0]
id = media["id"]
post_text = media["caption"]["text"]
print(Fore.YELLOW + '🔃 > getting link: ' + media_id)
print(Style.RESET_ALL)
link = bot.get_media_id_from_link(id)
images = []
if ("image_versions2" in media.keys()):
url = media["image_versions2"]["candidates"][0]["url"]
def get_image(url):
try:
print(Fore.YELLOW + "🚀 > Downloading Image...", url)
print(Style.RESET_ALL)
response = requests.get(url)
response.raw.decode_content = True
images.append(response.content)
elif("carousel_media" in media.keys()):
for e, element in enumerate(media["carousel_media"]):
url = element['image_versions2']["candidates"][0]["url"]
response = requests.get(url)
response.raw.decode_content = True
images.append(response.content)
return {
"id" : id,
"text": post_text,
"link": link,
"images" : images
}
print(Fore.GREEN + "✨ > Downloaded!")
print(Style.RESET_ALL)
return response.content
except:
print(Fore.RED + "💥 > Failed to download image.")
print(Style.RESET_ALL)
def already_posted(id):
file = open(id_filename, 'r');
if id in file:
file = open(id_filename);
content = file.read()
if id in content:
file.close()
return True
else:
file.close()
return False
def add_id(id):
def mark_as_posted(id):
file = open(id_filename, 'a');
file.write(id + "\n")
file.close()
def upload_images_to_mastodon(images_array):
ids = []
for i in images_array:
try:
media = mastodon.media_post(media_file = i, mime_type = "image/jpeg") # sending image to mastodon
ids.append(media["id"])
except:
print(Fore.RED + "💥 > failed to send photo")
def upload_image_to_mastodon(url):
try:
print(Fore.YELLOW + "🐘 > Uploading Image...")
print(Style.RESET_ALL)
media = mastodon.media_post(media_file = get_image(url), mime_type = "image/jpeg") # sending image to mastodon
print(Fore.GREEN + "✨ > Uploaded!")
print(Style.RESET_ALL)
except:
print(Fore.RED + "💥 > failed to upload image to mastodon")
print(Style.RESET_ALL)
return media["id"]
def toot(url, title ):
try:
print(Fore.YELLOW + "🐘 > Creating Toot...", title)
print(Style.RESET_ALL)
id = upload_image_to_mastodon(url)
post_text = str(title) + "\n" + "crosposted from instagram.com/innubis" # creating post text
print(id)
mastodon.status_post(post_text, media_ids = [id])
except:
print(Fore.RED + "😿 > Failed to create toot")
print(Style.RESET_ALL)
def none_convert(title):
if title == None:
return ""
else:
return str(title)
def generate_title(post):
text = ""
try:
print(post.title)
text += none_convert(post.title) + "\n"
except:
print("no title")
try:
print(post.accessibility_caption)
text += none_convert(post.accessibility_caption) + "\n"
except:
print("no accessibilitycaption")
try:
print(post.edge_media_to_caption['edges'][0]['node']['text'])
text += none_convert(post.edge_media_to_caption['edges'][0]['node']['text'])
except:
print("no edge_media_to_caption")
return text
# 'edge_media_to_caption': {'edges': [{'node': {'text': 'Good morning!\n#komikaki #всемкартинки'}}]}
posts = profile.get_posts()
stupidcounter = 0
for post in posts:
if stupidcounter < 100:
if already_posted(str(post.url)):
print(Fore.YELLOW + "🐘 > Already Posted", stupidcounter, " of ", posts.count)
print(Style.RESET_ALL)
return ids
twony_last_medias = bot.get_user_medias(fetched_user, filtration = None)
#filter(lambda x: not already_posted(x), twony_last_medias)
print(twony_last_medias)
print(len(twony_last_medias))
for media_id in enumerate(twony_last_medias):
post = get_post(media_id) # getting post info
print(post["link"])
#if(not already_posted(post["id"])):
# try:
# image_ids = upload_images_to_mastodon(post["images"])
# post_text = str(post["text"]) + "\n" + "crosposted from " + str(post["link"]) # creating post text
# mastodon.status_post(post_text, media_ids = image_ids) # attaching image to post and creating a toot
# add_id(post["id"]) # pushing id to "already_posted" file
# except:
# print(Fore.RED + "😿 > failed to create toot")
# print(Style.RESET_ALL)
continue
stupidcounter += 1
toot(post.url, post.caption)
mark_as_posted(str(post.url))
else:
break