MiteshShah / GPlusAlbumDownloader

Download complete Google Plus Album with single bash script.
12 stars 3 forks source link

Unable to handle special character album name #2

Open MiteshShah opened 12 years ago

MiteshShah commented 12 years ago

This script does not work properly if the album name contains some special characters and unable to find the necessary variable values like $OPTIONS $GPlusAlbumName $GPlusAlbumURL

boucman commented 12 years ago

In a related problem, it seems that it doesn't handle special characters in user names...

MiteshShah commented 12 years ago

Hi Boucman,

Can you give me some name and their profile url for testing?

MiteshShah commented 12 years ago

This scripts not worked properly if Album name contains the comma(,). Now the script handle all the special characters in Album name except the comma and i'm working on it to solve this issue.

boucman commented 12 years ago

the friend I was trying to pull from is called "Cécile Iron"

Id is 100673143639344529815

I never managed to get the list of her albums

MiteshShah commented 12 years ago

Hello Boucman,

The scripts handle all the special characters i'm liked my output here

Search Google Plus Profile via..

  1. First & Last Names
  2. Google Plus Profile ID Enter Your Choice(1 or 2): 1

Enter First Name: Cécile Enter Last Name: Iron

1) Photos from posts [57] 2) Profile photos [1] 3) PREVIEW: The Incredible Hulk #8 [5] 4) Marvel's The Avengers World Premiere [15] 5) Avenging Spider-Man #6 Preview [4] 6) Marvel's The Avengers Banners [6] 7) Marvel's The Avengers figures from Diamond Select Toys [2] 8) Marvel's The Avengers [3] 9) \Marvel’s The Avengers” Action Figures From Hasbro [4] 10) Avengers VS X-Men [2] 11) Loki Minimates from Diamond Select Toys [5] 12) First Look: WINTER SOLDIER #1 [4] 13) Preview: Secret Avengers #21.1 [6] 14) Sneak Peek: Defenders #2 [5] 15) Sneak Preview: PunisherMAX [6] 16) First Look: Daredevil #7 [4] 17) First Look: Venom #11 [3] 18) Amazing Spider-Man #676 Preview [4] 19) Sneak Peek: New Avengers #19 [5] 20) Sneak Peek: Secret Avengers [4] 21) Sneak Peek: Incredible Hulk #3 [5] 22) Sneak Peek: Daredevil #6 [4] 23) Marvel. vs. Capcom 3 Minimates [6] 24) Scrapbook photos [6]

? 2

You Selected 2) Profile photos [1]

GPlus Album Name = Profile photos Target Directory = CécileIron/Profile photos

[+] Downlaoding Please Wait... [+] Done!!!!!!!!!!!!!!!!!!!!!!!!!!!

But the script used Google Search to find the person and If people have the same name then Google Display Most Popular person with that name first so when we try "Cécile Iron" its display result for some other persons not our "Cécile Iron" (100673143639344529815) For this issue i'm provide a search and download G+ Album via G+ ID so when we try to download G+ Album via G+ ID the script says the person doesn't have albums (The person doesn't upload profile scrapbook photos or any photos)

You can verify it that 100673143639344529815 has no photos by visiting the following links https://plus.google.com/100673143639344529815/photos

The page display some photos of Cécile Iron is tagged by Jeremy Rosen so if you want to downloads that photos then find the Jeremy Rosen G+ ID and downloads ;-)

If you still have any issues with this scripts let me know ;-)

boucman commented 12 years ago

hmm, I am probably a bit confused by your script, I understand the problem with duplicates, but Cécile does have some albums (since I see them and you don't they probably arn't public, but shared with me)

is there a way to have your script use my credentials ? I probably should open a separate feature request for that, should I do so ?

MiteshShah commented 12 years ago

Hello Boucman,

Yes I'm doing that but its takes some time to use a credentials and Right now i'm busy with some other projects but i'm doing this later.

For now i'm give you simple way to download all that photos with some manual work 1st open that album and right click on that page and click on "View Page Source" Now copy all that page data and paste it on file called /tmp/GoogleAlbum.txt

!/bin/bash

for IMAGES in [Jj][Pp][Gg] [Pp][Nn][Gg] [Gg][Ii][Ff] [Jj][Pp][Ee][Gg] do cat /tmp/GoogleAlbum.txt | sed -n '/.picasa..'$IMG'/p' | awk -F '"' '{print $4}' | grep "s0-d" done > /tmp/MiteshShah.txt

echo "[+] Downlaoding Please Wait..." wget -qci /tmp/MiteshShah.txt

echo "[+] Done!!!!!!!!!!!!!!!!!!!!!!!!!!!"

boucman commented 12 years ago

ok, thx a lot, i'll keep an eye on this project for future updates