You are not logged in.

#1 2011-03-06 12:06:08

webofunni
Member
From: India
Registered: 2009-05-25
Posts: 53
Website

IMDB movie fetcher - cli tool for search movies

Hi archers,

I have added my script to AUR. You can find that at http://aur.archlinux.org/packages.php?ID=47118 . Its a CLI tool to search and get details about your favorite movies.

New version adds colored output [Thanks graysky ] and "similar title" suggestions.

movie-page.png

Last edited by webofunni (2011-06-06 19:49:19)

Offline

#2 2011-03-06 12:09:38

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 10,595
Website

Re: IMDB movie fetcher - cli tool for search movies

Nice script!  I posted a comment (bug) on your webpage.

Last edited by graysky (2011-03-06 12:20:18)


CPU-optimized Linux-ck packages @ Repo-ck  • AUR packagesZsh and other configs

Offline

#3 2011-03-06 12:22:14

dmz
Member
From: Sweden
Registered: 2008-08-27
Posts: 881
Website

Re: IMDB movie fetcher - cli tool for search movies

Sorry, but you're not allowed to scrape the imdb pages. Sucks.
TMDB provides an open API that you can use freely, see http://api.themoviedb.org/2.1

Offline

#4 2011-03-06 12:41:48

webofunni
Member
From: India
Registered: 2009-05-25
Posts: 53
Website

Re: IMDB movie fetcher - cli tool for search movies

graysky,

thanks man :-)

dmz,

Its a command line application and it cannot display the poster or fan arts. And its in its beginning state. I am trying to bring caching in future releases, so that the script will cache and previous queries and will use the cache and thus will save time and bandwidth.

I am really sorry, but I didn't get your idea completely. Can you please tell me what exactly you like to see in the script.

Offline

#5 2011-03-06 13:22:26

bangkok_manouel
Member
From: indicates a starting point
Registered: 2005-02-07
Posts: 1,556

Re: IMDB movie fetcher - cli tool for search movies

Offline

#6 2011-03-06 13:35:10

webofunni
Member
From: India
Registered: 2009-05-25
Posts: 53
Website

Re: IMDB movie fetcher - cli tool for search movies

bangkok_manouel,

I don't think this script comes under that. This is just like using browser to see IMDB movie page. in fact it is a browser ( lynx ). I usually stick to cli, so I am using it just to see movie info without opening my browser.

Offline

#7 2011-03-06 13:36:32

webofunni
Member
From: India
Registered: 2009-05-25
Posts: 53
Website

Re: IMDB movie fetcher - cli tool for search movies

hey graysky,

I fixed the bug. I am in the process of upgrading the arch package. I will update the forum after that. Thanks again for pointing out that :-) .

Offline

#8 2011-03-06 13:49:11

webofunni
Member
From: India
Registered: 2009-05-25
Posts: 53
Website

Re: IMDB movie fetcher - cli tool for search movies

graysky,

The updated script is at http://aur.archlinux.org/packages.php?ID=47118 . Please try it :-)

Offline

#9 2011-03-06 14:54:36

Rasi
Member
From: Germany
Registered: 2007-08-14
Posts: 1,914
Website

Re: IMDB movie fetcher - cli tool for search movies

belongs to "Community Contributions"


He hoped and prayed that there wasn't an afterlife. Then he realized there was a contradiction involved here and merely hoped that there wasn't an afterlife.

Douglas Adams

Offline

#10 2011-03-07 14:01:48

webofunni
Member
From: India
Registered: 2009-05-25
Posts: 53
Website

Re: IMDB movie fetcher - cli tool for search movies

Yes Rasi,

I didn't noticed that. But I cannot find an option to move this thread. I guess somebody from the moderator team needs to do that.

Offline

#11 2011-06-06 17:28:16

webofunni
Member
From: India
Registered: 2009-05-25
Posts: 53
Website

Re: IMDB movie fetcher - cli tool for search movies

new version available at AUR

http://www.mutexes.org/2011/06/06/imdb- … version-4/

Screenshot-1.png

Last edited by webofunni (2011-06-06 19:40:05)

Offline

#12 2011-08-23 09:15:05

tuxg
Member
Registered: 2011-07-15
Posts: 11

Re: IMDB movie fetcher - cli tool for search movies

Hi, thanks for the work
I want to report a bug with the "Cast" item. I have the html(javascript?) code rather than just the information.
Can you fix this please.

Thx again.

Offline

#13 2011-09-28 10:16:54

webofunni
Member
From: India
Registered: 2009-05-25
Posts: 53
Website

Re: IMDB movie fetcher - cli tool for search movies

Thanks tuxg,

I was busy with my office works. Working on cast/director code rt now. Will patch and upload the code soon. Thanks again for using it :-)

Offline

#14 2011-10-01 17:13:54

sujoy
Member
From: India
Registered: 2008-02-08
Posts: 94
Website

Re: IMDB movie fetcher - cli tool for search movies

Nice work smile

Bug Report: Rating doesn't seem to work atm.

Offline

#15 2011-10-03 12:35:39

webofunni
Member
From: India
Registered: 2009-05-25
Posts: 53
Website

Re: IMDB movie fetcher - cli tool for search movies

Done some quick fixes. Pls try the new package @ https://aur.archlinux.org/packages.php?ID=47118 . Currently I dont have access to a arch system, so the package is not tested. I will do that within few hours.

Thanks.

Offline

#16 2011-10-03 19:04:59

sujoy
Member
From: India
Registered: 2008-02-08
Posts: 94
Website

Re: IMDB movie fetcher - cli tool for search movies

yay!

new feature request: Language of Movie (lets me know whether its german or korean or spanish or what)

and if we could just do `imdb-mf "moviename"` so that the -t wasn't required everytime, it would be awesome smile

Offline

#17 2011-10-10 19:00:44

webofunni
Member
From: India
Registered: 2009-05-25
Posts: 53
Website

Re: IMDB movie fetcher - cli tool for search movies

Thanks for the input. I will add the language option.

The script need to differentiate bt diff options, thats why -t is there smile . U can just add an alias to bash rc and fix it .

echo "alias imdb-mf=\"imdb-mf -t\"" >> $HOME/.bashrc
source .bashrc

Offline

#18 2011-10-10 21:11:14

swanson
Member
From: Sweden
Registered: 2011-02-05
Posts: 759

Re: IMDB movie fetcher - cli tool for search movies

Here's a thunar custom action;
terminal --geometry=80x24 --hold -e "imdb-mf -t %n"

Although parsing different file names seems to be tricky. file_name.avi seems to work but file.name.avi seems not. I guess one can fix this with sed but I'm not that good at it.

Offline

#19 2012-07-21 11:58:02

MreDD
Member
From: Orange County, USA
Registered: 2007-08-26
Posts: 175
Website

Re: IMDB movie fetcher - cli tool for search movies

why not use:

declare -rx LYNX=`which lynx`
declare -rx CAT=`which cat`
declare -rx SED=`which sed`
declare -rx EGREP=`which egrep`
declare -rx GREP=`which grep`
declare -rx UNIQ=`which uniq`
declare -rx HEAD=`which head`
declare -rx SORT=`which sort`

instead of:

declare -rx LYNX="/usr/bin/lynx"
declare -rx CAT="/bin/cat"
declare -rx SED="/bin/sed"
declare -rx EGREP="/bin/egrep"
declare -rx GREP="/bin/grep"
declare -rx UNIQ="/usr/bin/uniq"
declare -rx HEAD="/usr/bin/head"
declare -rx SORT="/usr/bin/sort"

-----
-->$ whereis egrep;cat /etc/issue | cut -f1 -d '\'
egrep: /usr/bin/egrep /usr/share/man/man1/egrep.1.gz
Arch Linux

Last edited by MreDD (2012-07-21 11:58:54)


...MikereDD
:Go Away & Give My Pillow Back!!:
aur pkgbuilds - mostly fortune-mod's & fonts

Offline

#20 2012-12-19 23:02:13

webofunni
Member
From: India
Registered: 2009-05-25
Posts: 53
Website

Re: IMDB movie fetcher - cli tool for search movies

New version is out. Updated package build.

http://prj.mutexes.org/news/2

Offline

#21 2013-02-02 12:43:30

Enverex
Member
From: UK
Registered: 2007-06-13
Posts: 159
Website

Re: IMDB movie fetcher - cli tool for search movies

It doesn't seem to parse properly anymore:

 imdb-mf -t "Big Fish"

Title      :             2003
Year       : 2003
Rating     : 8.1/10
Director   : Tim Burton                     Writers:       Director:                                             Tarsem Singh         Stars:        Director:                                             John Boorman         Stars:        Director:                                             Wolfgang Petersen         Stars:        Director:                                             Kenneth Branagh         Stars:        Director:                                             Rob Cohen         Stars:        Director:                                             Gabor Csupo         Stars:        Director:                                             Dave McKean         Stars:        Director:                                             Spike Jonze         Stars:        Director:                                             Ang Lee         Stars:        Director:                                             Robert Zemeckis         Stars:        Director:                                             Chris Noonan         Stars:        Director:                                             Rob Reiner
Genres     :
Cast       : Ewan McGregor,  Albert Finney,  Billy Crudup                           Lee Pace,  Catinca Untaru,  Justine Waddell  Nigel Terry,  Helen Mirren,  Nicholas Clay  Noah Hathaway,  Barret Oliver,  Tami Stronach  Chris Hemsworth,  Anthony Hopkins,  Natalie Portman  Dennis Quaid,  Sean Connery,  Dina Meyer  Josh Hutcherson,  AnnaSophia Robb,  Zooey Deschanel  Stephanie Leonidas,  Jason Barry,  Rob Brydon  Max Records,  Catherine O'Hara,  Forest Whitaker  Suraj Sharma,  Irrfan Khan,  Adil Hussain  Tom Hanks,  Helen Hunt,  Paul Sanchez  James Cromwell,  Magda Szubanski,  Christine Cavanaugh  Wil Wheaton,  River Phoenix,  Corey Feldman
Plot       :

IMDB movie URL : http://www.imdb.com/title/tt0319061/
Poster URL :

==============Other similar Titles=============

Big Fish (2003)

Use above key words to know more about them

Offline

#22 2015-03-25 23:34:54

purple12
Member
Registered: 2008-08-16
Posts: 73

Re: IMDB movie fetcher - cli tool for search movies

I specifically looked for something to do exactly what your script does.  Pleasantly surprised to see an Arch-ster created it!  Works great!  Thanks.

Offline

Board footer

Powered by FluxBB