PyShare (imageshack/rapidshare/twitpic)

Nautilus Scripts

Source (link to git-repo or to original if based on someone elses unmodified work): Add the source-code for this project on opencode.net

16
6.1
Description:

This scripts allows you to easily upload images, screenshots, or other files and gives you links for: IM, Forums, HTML, Direct, Forums Thumbnail, HTML Thumbnail and Twitter(rapidshare gives only IM Forums and HTML)


INSTALLATION:
1. unpack folder and run install.sh (It will link some of the files from unpacked folder to nautilius scripts).
2. install python-pycurl (if not already installed)
3. install scrot (only if you want to send screenshots, not needed for sending files)
For best lossless screenshot compression install also optipng and set 'filesize' to 0 in configuration dialog(not advised on slow computer with fast connection, strongly advised on strong computer with slow connection)

If above don't work try restarting nautilius

UPDATING:
a. overwrite old folder content with new one
b. unpack folder anywhere and run overwrite.sh (It will overwrite link in nautilius scripts folder)


DESCRIPTION:
sendFiles - sends selected image(s) to your preferred uploader(imageshack ot twitpic) and other files to rapidhshare - if no file is selected shows empty window on which you can drop files
sendDesktopScreenshot - takes screenshot of desktop and send it to your preferred uploader(imageshack ot twitpic)
sendWindowScreenshot - takes screenshot of clicked window or takes screenshot of selected area(note: first run this script, then click on window/select area)
PyShare_GTK - shows PyShare window. You can drop images on it, or take screenshot from there.

EXAMPLES OF USE:
http://www.youtube.com/watch?v=b9Qz7WBx310
http://www.youtube.com/watch?v=eupQh9ppcQI
http://www.youtube.com/watch?v=0K_0RrzszDo


Errors are logged to ~/.pyshare/errorLog
bugtracker: https://bugs.launchpad.net/pyshare

TOS:
Imageshack, Twitpic and Rapidshare are registered trademarks. You have to agree to their TOS http://reg.imageshack.us/content.php?page=rules http://twitpic.com/terms.do http://rapidshare.com/agb.html to use their services.

IF YOU WANT TO HELP:
-donate
-help with translations: https://translations.launchpad.net/pyshare/
-help with artwork: http://naicik.blogspot.com/2010/02/pyshare-needs-you.html
Last changelog:

10 years ago

v0.6.2
-new translations
-fix saving credentials multiple times in keyring

v0.6.1
-fix crash when translations are not found
-add IT and SV translations from launchpad
-minor refactor

v0.6.0
-added uploading to Twitpic (requires account - see settings>accounts)
-fixed rapidshare uploading
-uploading as user to imageshack now possible (see settings>accounts)
-added plugin API
-added possibility to choose preferred uploader for filetype

changelog archive: http://ee.o12.pl/kacprzak/download/gnome-look/changelog.txt
more at http://bazaar.launchpad.net/~pyshareteam/pyshare/main/changes

Lamnk

11 years ago

Ability to upload images as a registered user is much appricated. So that man can track which files man uploaded.

Report

Spox5

11 years ago


Thanks for the Polish version of the script. Everything works correctly, but I would like option to remove images.

Good Job!!

Report

C

Nait

11 years ago

You mean something like small x near images that will remove image, and assosiated progressbar,combobox etc from app window? It's on my todo list for quite a while. If you mean removing image from imageshack server ,than it would be harder because I haven't seen delete link

PL:Chodzi Ci o guziczek do usuwania z okienka obrazka, paska postępu etc dotyczącego danego obrazka z okienka aplikacji? Jeżeli tak to mam to zaplanowane. Jeżeli natomiast chodziło Ci o usuwanie obrazka z serwera imageshacka to może być problem, bo nie widziałem odpowiedniego linku.

Report

Chocwise

12 years ago

Yepp. The script worked fine for me. But since appr. 1 Month it's broken. Maybe Imageshack changed something with their Uploadscript.

Report

C

Nait

12 years ago

should be fine now.

Report

C

Nait

12 years ago

I'll check that, sorry for delay, but I rarely need my script xD

Report

2sev

12 years ago

Does not work for me. It sends files to imageshack.com, but it does not show me the links. No links at all.

Report

C

Nait

12 years ago

fixed(I hope)

Report

2sev

12 years ago

Thanks! It really works now.

Report

durand

12 years ago

Uh, I didnt realise that you included beautiful soup as well. Whtat's wrong with using the one in the repos?

Report

C

Nait

12 years ago

I didn't know that there is one in repo:D I'll probably drop that dependency anyway

Report

durand

12 years ago

I also had to install python-beautifulsoup to get it to work. I also get a python error when it comes to displaying the page:

Unhandled exception in thread started by
Traceback (most recent call last):
File "/home/durand/.gnome2/nautilus-scripts/sendToImageshack.py", line 168, in upload
imageLinks = self.fetchExtraLinks(indirectLink)
File "/home/durand/.gnome2/nautilus-scripts/sendToImageshack.py", line 123, in fetchExtraLinks
links.append('http://yfrog.com/?url=' + links[4]) # create twitter link as yfrog + direct link
IndexError: list index out of range

Any ideas? It displays xml of the page beforehand so I know that it uploaded correctly.

Thanks!

Report

mainstream

12 years ago

It keeps saying... please wait
Even though nothing happens.

Report

RodoX

12 years ago

I liked the interface. Simple and easy to use and understand. If anything fails or goes wrong, the script has a good way to instruct the user to make it work out. By the way I was thinking if you can make a new version of the script but instead of sending the files to IS, it would work with Google's GMAiL. As everybody knows, there are ways to work with your inbox as an external storage account, it would be nice to see a working script sending files and asking me my username and password and bang! the files has been storaged!
Just one idea, I know this sounds challenging...can you do it?

Thank you for this script! keep up the good work!

Report

Spox5

12 years ago

Nice Job!

(Jak możesz to zamieść spolszczoną wersję skryptu.)

Report

derma

12 years ago

...take a look here...

http://www.divshare.com/download/7408028-b4f

...could you arrange the elements in that way?

I think it'd be easier choosing the copy'n'paste url.

Report

C

Nait

12 years ago

Thanks for mockup, it is certainly doable. It will be one click less but it will require much more space(It's probably ok for my 1920x1200 screen,but can make a difference for multiupload on netbooks). You've shortened link names, but 4buttons named forum are not very intuitive(I know that this with 2 are supposed to be Alt links which are also not intuitive name, and small letter forum is supposed to be link with thumbnail, but it still fails on "don't make user think"). I'll think about it and probably ask few people for opinion before deciding. (Rapidshare/Youtube would probably have only one link so maybe buttons are the way to go).

Report

NilugeKiWi

12 years ago

Hi,
Your script is really useful !

I've made two small improvements :

1/ I replaced the clipboard copy by a copy on the "primary" zone ( the one used with middle click and selected text). It works on more software (for example with emacs the clipboard can't be used).
It could be set as an option.

2/ I added buttons "Direct URL" along with the dropboxes : I usually only use the direct url, so it was a loss of time to search on the menu everytime.

The patch and the new version are here :
http://www.niluge-kiwi.info/tmp/sendToImageshack.py.patch
http://www.niluge-kiwi.info/tmp/sendToImageshack.py


I hope it will be useful for someone.

Report

C

Nait

12 years ago

AFAIK you can paste from clipboard to any terminal aplication using ctrl+shift+v or using rightclick menu. Primary have this drawback, that if someone switch to a browser and want to check his link he have to select text from adress bar, and than selected text replace imageshack link in primary, so I probably will not make it default(There are probably even some users that don't know about middle click pasting at all).
As for direct link button it was there prior to 0.3. I added other links because my friend told me that he use almost always forum link, or forum thumbnail link, so it's rather person specific. Moreover button+combobox is IMO less intuitive than combobox only(which is also not as intuitive as I would want).
However, I'm glad that you customized it to be better for your use case.

Report

botoxxx

12 years ago

Hi Nait,

thanks for the hint. This works for me. I was to focused on your screenshot.

Thank you

Kosta

Report

C

Nait

12 years ago

I'll try to make it more intuitive.

Report

botoxxx

12 years ago

Hi Nait,

I use the script in Ubuntu Jaunty.
The picture will be uploaded - upload completed is displayed. I can choose the drop box and the close botton, but no code is generated.

Any idea ?

Thank you

Kosta

Report

C

Nait

12 years ago

not at the moment. Just in case: you do know that after selecting link type from combobox, the link is copied to your clipboard, and you can paste it(there is no link shown visually)

Report

Guevara76

12 years ago

http://ee.o12.pl/kacprzak/download/gnome-look/testing/sendToImageshack.py

This script did not work too, since the installation never worked, is only a window to zero percent. I click on close buttton and finalize the application.

Report

C

Nait

12 years ago

I've just checked and it works for me in hardy (8.04.2). I'm still not sure whats wrong, I'll write modified script for you, but I need some time.

Report

10 years ago

v0.6.2
-new translations
-fix saving credentials multiple times in keyring

v0.6.1
-fix crash when translations are not found
-add IT and SV translations from launchpad
-minor refactor

v0.6.0
-added uploading to Twitpic (requires account - see settings>accounts)
-fixed rapidshare uploading
-uploading as user to imageshack now possible (see settings>accounts)
-added plugin API
-added possibility to choose preferred uploader for filetype

changelog archive: http://ee.o12.pl/kacprzak/download/gnome-look/changelog.txt
more at http://bazaar.launchpad.net/~pyshareteam/pyshare/main/changes

12345678910
13
product-maker I4C Feb 19 2013 3 bad
product-maker mainstreamdesign Apr 19 2011 9 excellent
product-maker Dicson12 Mar 15 2011 9 excellent
product-maker legluondunet Feb 14 2011 9 excellent
Be the first to comment
zolajriggs
Mar 03 2020
loissmoon
Dec 30 2019
webmastir
Oct 11 2010
piedro
Sep 11 2010
vagrale13
Jan 26 2010
Vecna
Jan 14 2010
themis
Nov 29 2009
MastroPino
Nov 19 2009
nicolaide
Jun 15 2009
didisoft
May 02 2009
Spox5
May 02 2009
microscopuce
May 02 2009
Rajca
Mar 22 2009
franek
Mar 18 2009
Dicson12
Mar 17 2009
Dav87
Mar 16 2009
File (click to download) Version Description Downloads Date Filesize DL OCS-Install MD5SUM
*Needs pling-store or ocs-url to install things
Pling
0 Affiliates
Details
license
version
0.6.2
updated Jun 02 2011
added Mar 13 2009
downloads 24h
0
mediaviews 24h 0
pageviews 24h 3
System Tags addon