From 925d7c3fbe243b775be6b47d750d1194b2077296 Mon Sep 17 00:00:00 2001 From: unytics Date: Thu, 24 Aug 2023 23:16:23 +0200 Subject: [PATCH] new function get_webpage_metadata --- bigfunctions/get_webpage_metadata.yaml | 29 ++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 bigfunctions/get_webpage_metadata.yaml diff --git a/bigfunctions/get_webpage_metadata.yaml b/bigfunctions/get_webpage_metadata.yaml new file mode 100644 index 00000000..4ba797fb --- /dev/null +++ b/bigfunctions/get_webpage_metadata.yaml @@ -0,0 +1,29 @@ +type: function_py +category: get_data +author: + name: Paul Marcombes + url: https://www.linkedin.com/in/paul-marcombes + avatar_url: "https://lh3.googleusercontent.com/a-/ACB-R5RDf2yxcw1p_IYLCKmiUIScreatDdhG8B83om6Ohw=s260" +description: | + Get webpage metadata + (using [metadata_parser](https://github.com/jvanasco/metadata_parser) python library) +arguments: + - name: url + type: string +output: + name: metadata + type: json +examples: + - description: "" + arguments: + - "'https://apps.apple.com/fr/app/nickel-compte-pour-tous/id1119225763'" + output: "{...}" +code: | + import metadata_parser + page = metadata_parser.MetadataParser(url=url) + return page.metadata +requirements: | + requests + metadata_parser +quotas: + max_rows_per_query: 10