Author Topic: ZiNC - downloading files from Dropbox!  (Read 1798 times)

kaio (OP)

  • *
  • Posts: 209
    • All about GCW-Zero on Russian + Repo
ZiNC - downloading files from Dropbox!
« on: June 15, 2016, 06:43:32 am »
Ok, guys. We have a problems.
Dropbox no longer render html via shared links.
We can't download html-file anymore and parse it for getting files & links!
The story of ZiNC & Dropbox is come to very end.
The project has stopped for some time.


Hello, my friends!

I'm glad to represent you Zinc!
What is it?
ZiNC is Not a Cloud!
This program is for downloading files from Dropbox shared (available to all) folders to GCW-Zero Handheld Console!

   
   

What kind of users will find it useful?
During a day I find interesting material for my GCW-Zero, I upload it from different sources with Desktop PC or smartphone to my Dropbox shared folder.
In the evening, I download all the stuff in my console with Zinc and use it.
Tested with big files, up to 218 Mb.

Download latest opk v. 0.3.4
Source code - https://github.com/bargool/zinc

The software uses python2-dialog to show UI and wget to download files.

# Settings

Settings file will appear at /media/home/.zinc/ after first start.
'Dropbox' section of config contains of pairs reponame = dropbox_share_link. Where dropbox_share_link is url to dropbox folder, that contains files to download.
'Folders' section of config contains of pair download_folder = ~/Download/.
Just edit this parameter to your own. (for example /media/home/sdcard/dropbox/).

# Default controls

D-Pad: Directions
L: Tab (Change active element)
Y: Select a file (add to the list)
START: Enter
SELECT: Escape

# To do list

- create a plugin system [WIP]
- add GDrive plugin

UPDATE 2016-08-03: Fixed change of dropbox page structure.

« Last Edit: September 26, 2016, 03:20:04 pm by kaio »
GCW-Zero | JXD S602

Aeter

  • *
  • Posts: 276
Re: ZiNC - downloading files from Dropbox!
« Reply #1 on: June 15, 2016, 01:49:10 pm »
Wow awesome.
I'd love to test this out as a new file manager.
No more hooking up my gcw0 to my pc.
And always accessible.
Every time I think people can't possibly produce more awesome stuff, guys like you drop by to give us more.
Thank you for this.

Also, cool recursive name, GNU style.
« Last Edit: June 15, 2016, 01:53:12 pm by Aeter »
~cucullus non facit monachum~

Kouen Hasuki

  • *
  • Posts: 153
Re: ZiNC - downloading files from Dropbox!
« Reply #2 on: June 26, 2016, 03:05:43 pm »
Cheers for this! nice to see tools still being made for the zero!

ubervison

Re: ZiNC - downloading files from Dropbox!
« Reply #3 on: June 28, 2016, 03:53:46 pm »
Wow, this will be really useful. Much less cumbersone than Filezilla! Thank you for your good work.

kaio (OP)

  • *
  • Posts: 209
    • All about GCW-Zero on Russian + Repo
Re: ZiNC - downloading files from Dropbox!
« Reply #4 on: August 03, 2016, 09:13:52 am »
UPDATE 2016-08-03: Fixed change of dropbox page structure.
Please, redownload from the same link in first post, thx.
GCW-Zero | JXD S602

thefifthgiant

  • *
  • Posts: 103
Re: ZiNC - downloading files from Dropbox!
« Reply #5 on: September 03, 2016, 10:13:45 pm »
Hey, cool idea!  :)

I tried this program out, but am having a some trouble getting it to work. First, when I run the program, there is a screen showing an error, but it goes away too fast to read, but oddly enough, it is referencing some sort of issue running the radio app (which I am not running). Then the screen asking which repo I want to choose, but when I select mine, it request for a second or two and then exits the program and flashes another screen of text at me. I'm not fast enough to read it, so I thought I would check the output log, but there doesn't ever seem to be one. I have output logs enabled, and have generated them when running other programs.

Any ideas?

kaio (OP)

  • *
  • Posts: 209
    • All about GCW-Zero on Russian + Repo
Re: ZiNC - downloading files from Dropbox!
« Reply #6 on: September 05, 2016, 08:46:04 am »
Hello. Do you use the latest version 0.3.4?
I had a same problem, but with developer version.
We'll add a logging in the next version and we'll see the problem.
Give me a link to radio app, I'll test it.
GCW-Zero | JXD S602

thefifthgiant

  • *
  • Posts: 103
Re: ZiNC - downloading files from Dropbox!
« Reply #7 on: September 07, 2016, 02:22:51 am »
Yes, I am using version 0.3.4, but I have noticed that I also get the same error screen about the radio app when running the unmount storage utility, so I don't think it is an issue with ZiNC. Here is the opk if you want to test anyway.

https://www.dropbox.com/s/zkbqekx9bpyzaj7/gcw-radio-applicatiob_file_d41d8cd98f00b204e9800998ecf8427e_.opk?dl=0


kaio (OP)

  • *
  • Posts: 209
    • All about GCW-Zero on Russian + Repo
Re: ZiNC - downloading files from Dropbox!
« Reply #8 on: September 26, 2016, 03:17:45 pm »
Ok, guys. We have a problem.
Dropbox no longer render html via shared links.
We can't download html-file anymore and parse it for getting files & links!
The story of ZiNC & Dropbox is come to very end.
The project has stopped for some time.
GCW-Zero | JXD S602

gameblabla

  • *
  • Posts: 417
Re: ZiNC - downloading files from Dropbox!
« Reply #9 on: September 26, 2016, 05:42:11 pm »
Ok, guys. We have a problem.
Dropbox no longer render html via shared links.
We can't download html-file anymore and parse it for getting files & links!
The story of ZiNC & Dropbox is come to very end.
The project has stopped for some time.
Yeah, it seems they changed how they render things.
Not sure how you used to get your files from Dropbox but it see it is still possible to get files Dropbox with wget :
https://www.dropbox.com/s/zkbqekx9bpyzaj7/gcw-radio-applicatiob_file_d41d8cd98f00b204e9800998ecf8427e_.opk?dl=1

Notice the '?dl=1' at the end.

Seems like though you will have to use their APIs...

wepecko

  • *
  • Posts: 63
Re: ZiNC - downloading files from Dropbox!
« Reply #10 on: September 27, 2016, 09:36:24 am »
Thanks for this, Kaio. Very handy tool...
option for Google drive would be really sweet.

kaio (OP)

  • *
  • Posts: 209
    • All about GCW-Zero on Russian + Repo
Re: ZiNC - downloading files from Dropbox!
« Reply #11 on: September 27, 2016, 10:10:00 am »
I can download shared files with '?dl=1' at the end via Wget, but I can't download a link to shared folder.

Q: Will anybody want to write a lot of links to files?
A: No-no-no...

After the last changes from Dropbox team, I always download a empty page (((
Html page generates by a lot of java scripts, I can to download scripts, but I can't run it to get proper html page of shared folder (((
By the way... gcw-zero python compiled without ssl support... it's very bad...

Google drive - work in progress
GCW-Zero | JXD S602

Ryvan

Re: ZiNC - downloading files from Dropbox!
« Reply #12 on: September 28, 2016, 03:40:22 pm »
Maybe use the Dropbox API - https://www.dropbox.com/developers ? Presumably HTTP or Python is the way to go here.

kaio (OP)

  • *
  • Posts: 209
    • All about GCW-Zero on Russian + Repo
Re: ZiNC - downloading files from Dropbox!
« Reply #13 on: September 28, 2016, 03:53:05 pm »
Sorry...
I can use login & password to authorize via dropbox api, but I can't confirm the access to Dropbox to foreigner app (ZiNC) . I need a WEB browser and touchscreen)))
GCW-Zero | JXD S602

Ryvan

Re: ZiNC - downloading files from Dropbox!
« Reply #14 on: September 28, 2016, 04:34:36 pm »
https://www.dropbox.com/developers/reference/oauth-guide

I realize it's imperfect, but you should only need to go that route once to get an authorization code/token yes?

 

Post a new topic