Airikr
Airikr

Reputation: 6436

Grab the awards from a person and movie/TV serie from IMDb

I have these regular expression to grab the Oscars, wins, and nomination from a person (for example Cote de Pablo).

preg_match('/([0-9]+) Oscars/', $url, $oscars);
preg_match('/([0-9]+) ([win|wins]+)/', $url, $wins);
preg_match('/([0-9]+) nominations/', $url, $nominations);

There is more awards than these three though and I wonder how I can grab all of the awards for a person and for a movie or TV serie with two separated regular expression?

Thanks in advance.

Upvotes: 0

Views: 190

Answers (1)

user1546987
user1546987

Reputation: 69

Honestly you can just copy/paste it, however if you want it to consistently update it thats a different story.

Upvotes: 1

Related Questions