We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c622579 commit 1c12a33Copy full SHA for 1c12a33
1 file changed
src/Imdb/Title.php
@@ -2955,9 +2955,17 @@ public function officialSites()
2955
public function keywords_all()
2956
{
2957
if (empty($this->all_keywords)) {
2958
- $page = $this->getPage("Keywords");
2959
- if (preg_match_all('|<a.*?href="/search/keyword[^>]+?>(.*?)</a>|', $page, $matches)) {
2960
- $this->all_keywords = $matches[1];
+ $query = <<<EOF
+keyword {
+ text {
2961
+ text
2962
+ }
2963
+}
2964
+EOF;
2965
+ $edges = $this->graphQlGetAll("TitleKeywordsPagination", "keywords", $query);
2966
+
2967
+ foreach ($edges as $edge) {
2968
+ $this->all_keywords[] = $edge->node->keyword->text->text;
2969
}
2970
2971
return $this->all_keywords;
0 commit comments