hack3dq / vktotg Goto Github PK
View Code? Open in Web Editor NEWSends all your vk.com music to telegram channel
License: MIT License
Sends all your vk.com music to telegram channel
License: MIT License
python3 vktotg.py 5024071
File "vktotg.py", line 38
f'\r{round(sent_bytes / total * 100, 1)}% {round(sent_bytes / 1024 / 1024, 1)}/{round(total / 1024 / 1024, 1)} MB'
^
SyntaxError: invalid syntax
я даже теряюсь в догадках, что делает этот 120-символьный однострочник полный математики)
Good time. I got this problem (screenshot) when run .py file.
Also used .exe version, and got the error i cant capture cause its dissapearing too fast, I'm sorry. But it appears after login to telegram, and showing that there is 1 (??? There are 450+ files in my playlist) file to dump.
Anyway, programm creates the channel, and its empty.
And of course, I checked "privacy" settings in VK settings, my playlist is visible to everyone.
Hope, it would help to correct these issues.
python3 ./vktotg.py ✭
Do you want to leave the local files? [N/y] y
First, log in to vk.com
Enter login: sy***
Enter password:
Traceback (most recent call last):
File "./vktotg.py", line 153, in <module>
main()
File "./vktotg.py", line 117, in main
audios = vkaudio.get(user_id)
File "/usr/lib/python3.5/site-packages/vk_api/audio.py", line 90, in get
return list(self.get_iter(owner_id, album_id))
File "/usr/lib/python3.5/site-packages/vk_api/audio.py", line 73, in get_iter
tracks = scrap_data(response.text, self.user_id)
File "/usr/lib/python3.5/site-packages/vk_api/audio.py", line 201, in scrap_data
duration = int(audio.select_one('.ai_dur')['data-dur'])
TypeError: 'NoneType' object is not subscriptable
Hi!
I'm trying to use .exe file from windows to download all my music to the local folder and I am getting this error:
`C:\vktotg-master>vktotg.exe my_vk_userid
Do you want to leave the local files? [N/y] y
First, log in to vk.com
Enter login: ---
Enter password: ---
Downloading audios from my_vk_userid
Traceback (most recent call last):
File "vktotg.py", line 201, in
print()
File "vktotg.py", line 135, in main
folderName = 'Music '
File "vktotg.py", line 120, in auth_tg
File "site-packages\telethon\telegram_bare_client.py", line 188, in connect
File "site-packages\telethon\network\mtproto_sender.py", line 49, in connect
File "site-packages\telethon\network\connection.py", line 79, in connect
File "site-packages\telethon\extensions\tcp_client.py", line 49, in connect
socket.timeout: timed out
[1720] Failed to execute script vktotg`
What is going wrong? Do I nevertheless need to login into Telegram?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.