@WorldNews · Post #73769 · 01.04.2026 г., 11:05
Russia's largest oil company's net income drops by 73% in 2025 [Read FullArticle] @WorldNews#OilIndustry#RussiaNews#EarningsDrop
TGINSIGHT SIMILAR POSTS
Изворен канал @pythonotes · Post #191 · 14 дек.
Как разделить строку с shell-командой на отдельные аргументы в виде списка? Если сделать просто сплит по пробелу то получим то что надо, кроме случаев со вставками текста с пробелами. Например так: >>> '-arg "I Am Groot"'.split(' ') ['-arg', '"I', 'Am', 'Groot"'] Чтобы учитывать текст в кавычках как единый аргумент можно воспользоваться функцией shlex.split() Кто читает мой канал давно, уже в курсе. А что делать, если нужно обратное действие? Объединить аргументы из списка в строку и при этом добавить кавычки в аргумент с пробелами. Конечно, если вы используете subprocess то он сам всё разрулит. Но если вам нужна именно команда одной строкой, то можно воспользоваться готовой функцией в том же subprocess. >>> from subprocess import list2cmdline >>> list2cmdline(['-arg', 'I Am Groot']) '-arg "I Am Groot"' Он также позаботится об экранировании уже имеющихся кавычек >>> list2cmdline(['-arg', 'I Am "Groot"']) '-arg "I Am \"Groot\""' А вот так он может "схлопнуть" в команду JSON >>> list2cmdline(['--json', json.dumps({'key': 'value'})]) '--json "{\"key\": \"value\"}"' _______________ Возможно кто-то спросит, а зачем соединять аргументы в строку если subprocess сам это сделает а os.system не наш путь? Мне как-то потребовалось отправлять команду на удалённое выполнение и в API поддерживалось указание команды только строкой. Так что всякое бывает) #libs#basic
Пребарај: #oilindustry
@WorldNews · Post #73769 · 01.04.2026 г., 11:05
Russia's largest oil company's net income drops by 73% in 2025 [Read FullArticle] @WorldNews#OilIndustry#RussiaNews#EarningsDrop
@venanalysis · Post #2035 · 21.07.2025 г., 19:36
📰 NEWS | Venezuela: Oil Industry Navigates Sanctions, Places 90 Percent of Exports to China The Venezuelan oil industry has managed to maintain production and export levels in the wake of renewed US sanctions. State oil company PDVSA is now selling 90% of its crude to China. However, the Maduro government continues to court foreign investment to boost the energy sector recovery. Follow the link for the full report: https://venezuelanalysis.com/news/venezuela-oil-industry-navigates-sanctions-places-90-percent-of-exports-to-china/ #Venezuela#OilIndustry#China#PDVSA
@venanalysis · Post #2238 · 10.01.2026 г., 23:18
📰 NEWS | Trump Administration Hosts Oil Executives, Insists on Sweeping Venezuelan Oil Concessions The Trump administration hosted global oil executives and reiterated its claims to exercise control over present and future Venezuelan oil sales. Washington has maintained its pressure to impose conditions on the acting government in Caracas, with naval forces seizing a fifth oil tanker on Friday. Follow the link to read our report: https://venezuelanalysis.com/news/trump-administration-hosts-oil-executives-insists-on-sweeping-venezuelan-oil-concessions/ #OilIndustry#TrumpAdministration#Chevron#Venezuela
@venanalysis · Post #1897 · 04.03.2025 г., 19:50
🚨NEWS | Venezuela: US Shrinks Chevron Wind-Down Period to 30 Days Following ‘Crazy Cubans’ Pressure The Trump administration ordered the oil giant to cease its activities in Venezuela by April 3. The ramped-up economic sanctions will immediately affect the country’s oil output and potentially trigger renewed inflation. 🔗 Read the full report here: https://venezuelanalysis.com/news/venezuela-us-shrinks-chevron-wind-down-period-to-30-days-following-crazy-cubans-pressure/ #Sanctions#Chevron#OilIndustry#Trump
@venanalysis · Post #2244 · 14.01.2026 г., 21:47
📰 NEWS | Chinese Supertankers Turn Back as US Moves Ahead to Extort Venezuelan Crude With Washington stepping up its naval blockade, two Chinese-flagged supertankers turned back when headed to load Venezuelan crude. Commodities traders Vitol and Trafigura have begun to move Venezuelan oil. Trump officials insist that the sales proceeds will be deposited in US accounts. Read our report: https://venezuelanalysis.com/news/chinese-supertankers-turn-back-as-us-moves-ahead-to-extort-venezuelan-crude/ #OilIndustry#Sanctions#China#TrumpAdministration
@venanalysis · Post #2237 · 10.01.2026 г., 17:33
📹 VIDEO | Trump’s Oil Heist in Venezuela Historian Steve Ellner and Venezuelanalysis' Ricardo Vaz joined Sharmini Peries on theAnalysis.News to gather a historical perspective on the Venezuelan oil industry and how US imperialist interests have played a role. Watch the video: https://venezuelanalysis.com/video/trumps-oil-heist-in-venezuela/ #Venezuela#OilIndustry#History#Trump
@venanalysis · Post #2245 · 16.01.2026 г., 03:27
📹 VIDEO | Trump–Rodríguez Oil Talks Test Venezuela’s Sovereignty Venezuelanalysis founder and contributing editor Gregory Wilpert joined Sharmini Peries on theAnalysis.News to discuss US claims over the Venezuelan oil industry and the broader context of the struggle for sovereignty. Follow the link to watch: https://venezuelanalysis.com/video/trump-rodriguez-oil-talks-test-venezuelas-sovereignty/ #OilIndustry#Venezuela#NationalSovereignty#History
@venanalysis · Post #1602 · 14.06.2024 г., 23:47
Over the past century, oil has played an outsized role in Venezuela. It is no wonder that the United States, in its neverending regime-change plots, chose to target this crucial sector with crushing sanctions. Our latest video examines the crude reality of coercive measures against the Venezuelan oil industry. #Venezuela#Sanctions#USPolicy#VenezuelanOil#OilIndustry https://youtu.be/lwcB4Z9jwGA