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

lukeluke

11 years ago

if you want use a proxy, you must add in the script the right line.

This is my sendToImageshack.py:

curl.setopt(pycurl.URL, "http://www.imageshack.us/index.php")
curl.setopt(pycurl.HTTPHEADER, ["Except:"])
curl.setopt(pycurl.PROXY,"ip.or.name.of.proxy")
curl.setopt(pycurl.PROXYPORT, port.of.proxy)
curl.setopt(pycurl.PROXYUSERPWD,"user:pwd")
curl.setopt(pycurl.PROXYAUTH,8) #NTLM
curl.setopt(pycurl.POST, 1)
curl.setopt(pycurl.HTTPPOST, [('fileupload', (pycurl.FORM_FILE, file)), ('xml', 'yes')])


Bye

Report

C

Nait

11 years ago

Thanks a lot,I'll check it.

Report

Demolidor

11 years ago

Script em pt-br :c)
http://www.4shared.com/file/218171658/b3b7ae7a/sendToImageshack.html

Report

C

Nait

11 years ago

I'd really be thankful for translation of newer PyShare version on https://translations.launchpad.net/pyshare/0.5
(Yep, new version is near ; - )

Report

play3man

11 years ago

PyShare Translated to slovak language. Download: http://ulozto.sk/3816295/pyshare-sk-language.tar.bz2

Report

Vecna

11 years ago

Is it possibile to add a feature that allow to resize an image on imageshack? :)

and maybe also the feature that show/hide the information tag under a thumbnail XD

am i asking too much? XD

Report

Vecna

11 years ago

I translated into Italian the sendToImageShack script (now called "Carica su ImageShack")...add to the download list, if you want ;)

http://www.box.net/shared/jhgptigk7r

Report

C

Nait

11 years ago

thanks, I added it. However I've changed script name back, because python imports use filenames, so I would need to change more files to keep new filename.

Report

Vecna

11 years ago

I translated into Italian the sendToImageShack script (now called "Carica su ImageShack")...add to the download list, if you want ;)

http://www.box.net/shared/jhgptigk7r

Report

steveacab

11 years ago

Is it possible for http://upload.centerzone.it/? Is better than imageshack.

Report

C

Nait

11 years ago

Probably it is possible, unless their license forbids it. However non-images hosting sites have higher priority for me. You can open this as a wish on https://bugs.launchpad.net/pyshare/+filebug to help me remember(it easier to find it there than on gnome-look comments)

Report

steveacab

11 years ago

https://bugs.launchpad.net/pyshare/+bug/487246

Report

szamot83

11 years ago

Hello,
Hello I was using version 0.3.8 with Thunar File Manager (native for XFCE). Today I have upgraded script to 0.4.0 and it stop working.
I have tried send images with sendToImageshack.py and with sendFiles.
With sendToImageshack.py I was able to upload images only in terminal - GUI wont start.
I have add this to my action list, and it not work.
Please help me, or fix this.

Best regards.

Sorry for my English.

Report

C

Nait

11 years ago

oh and if it still don't work maybe you don't have dbus. Try installing it or change
allowOneInstanceOnly = True
to
allowOneInstanceOnly = False
in MainWindow.py

Report

szamot83

11 years ago

Ok. now it works - Thank you. I have to change allowOneInstanceOnly.

Before change:
allowOneInstanceOnly = True - rinning app in terminal gives:
./MainWindow.py ~/Obrazy/Obraz\ 360.jpg
uploading
upload
MainWindow.py: Fatal IO error 11 (Resource temporarily unavailable) on X server :0.0.


I't is nice to see that big changes are coming :)

I have noticed, that if I click on "close" button during uploading image, app will hang, and stop responding.

Once again thanks.

Report

C

Nait

11 years ago

>Ok. now it works
I'm glad to hear it.
PL: miło mi to słyszeć

>MainWindow.py: Fatal IO error 11 (Resource temporarily unavailable) on X server :0.0.
It's bad that it didn't give any GUI error earlier.
PL: Miałem nadzieję że skrypt pokaże błąd graficznie(jak go uruchamiałeś z GUI), szkoda że tego nie robi.

>I have noticed, that if I click on "close" button during uploading image, app will hang, and stop responding.
I know, already fixed it
PL: Wiem, już poprawiłem.

Report

C

Nait

11 years ago

I didn't know that it worked with Thunar:D I just installed and checked it:
sendScreenshot and sendDesktopScreenshot works as previously
sendFiles don't work - add execute right for MainWindow.py and use it instead(in Actions assosiate it with images,and use %F in commands for example: /home/me/MainWindow.py' %F
I'll publish 0.4.1 soon - than you could open empty windows by running MainWindow.py without parameters and droping images on it(works on thunar to)

Report

MastroPino

11 years ago

Very nice work!

There is way for add image to my gallery by user and password?

Report

C

Nait

11 years ago

at the moment only to rapidshare by CLI, I've done gnome-keyring integration, but I need GUI to put accounts passwords, and modify sending to imageshack to use it. So stay tuned:D

Report

C

Nait

11 years ago

not yet

Report

lukeluke

11 years ago

Hello,
How can use this script with a proxy ?

THANKS A LOT

Bye

Report

C

Nait

11 years ago

I'm not sure. I would have to create proxy to test it. I opened this a bug https://bugs.launchpad.net/pyshare/+bug/486608 but it's hard when I cannot test it.

Report

originalmaraxush

11 years ago

It doesn't work with 9.10... :-( it is just uploading the file, and tells me wait while uploading... :-(

Report

C

Nait

11 years ago

Do you get some error message? I'm on Ubuntu 9.10 and it works for me. You can try running new version from console for example:
python MainWindow.py yourImage.png
for GUI or
python sendToImageshack.py yourImage.png
and report a bug with error messages to
https://bugs.launchpad.net/pyshare

Report

originalmaraxush

11 years ago

Hey man, I love this script, thanks! :-)

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