<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Vlad Adumitracesei on Medium]]></title>
        <description><![CDATA[Stories by Vlad Adumitracesei on Medium]]></description>
        <link>https://medium.com/@vladadumitracesei02?source=rss-5135d7a6fb24------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*Q7EU98kBO0EuMzjWJbwp8g.jpeg</url>
            <title>Stories by Vlad Adumitracesei on Medium</title>
            <link>https://medium.com/@vladadumitracesei02?source=rss-5135d7a6fb24------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 29 Nov 2026 06:05:40 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@vladadumitracesei02/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[From Posts to Reports: Leveraging LLMs for Social Media Data Mining]]></title>
            <link>https://medium.com/decodingai/from-posts-to-reports-leveraging-llms-for-social-media-data-mining-6ebe0e2cdeb1?source=rss-5135d7a6fb24------2</link>
            <guid isPermaLink="false">https://medium.com/p/6ebe0e2cdeb1</guid>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[generative-ai]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[prompt-engineering]]></category>
            <dc:creator><![CDATA[Vlad Adumitracesei]]></dc:creator>
            <pubDate>Tue, 08 Oct 2024 07:03:05 GMT</pubDate>
            <atom:updated>2024-10-08T07:44:00.675Z</atom:updated>
            <content:encoded><![CDATA[<h4>How to instruct LLMs to filter restaurant posts and extract critical insights for business growth.</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*AImMcgC4HcCxLtYaHnlYrA.jpeg" /><figcaption>Image generated by ChatGPT</figcaption></figure><h4>Application Overview</h4><p>We’re living in the golden age of automation, powered by the rise of large language models (LLMs). From transforming industries to unlocking endless applications, LLMs have revolutionized how we interact with data, primarily through natural language.</p><p>In this article, I’ll show you how to instruct an LLM to cut through social media noise and extract the information that matters most. Specifically, we’ll dive into how you can mine Instagram restaurant posts to gather valuable data — think special offers, discounts, and events — and compile it into a sleek weekly report.</p><h4>Why is this useful?</h4><p>As the old saying goes, <strong>“Knowledge is power.”</strong></p><p>Using the algorithm presented in this article, you can obtain all the crucial data you care about in a specific field, reducing the time you spend searching for this data to 0 by simply pressing one button and having the LLM do all the work.</p><p>Later in this article I will also show you how to write this data in an easily readable structure like <strong>CSV</strong> or <strong>EXCEL</strong> for storage or data querying/filtering.</p><p>This method is much more advanced than old web crawling/scraping methods because, with the help of an LLM, we can filter extracted content however we want, focusing only on what interests us.</p><h4>Table of contents:</h4><p>1. Data Crawling<br>2. Data Storage<br>3. Prompt Engineering<br>4. LLM Usage<br>5. Response Formatting<br>6. Putting Everything Together</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*3jAV-0Cy_VrJvyD1nNnJhw.jpeg" /><figcaption>App Architecture Overview [Image by the Author]</figcaption></figure><h3>1. Data Crawling</h3><p><strong>Disclaimer</strong>: Based on your region, this implementation might not work for you because different regulations apply to web crawling. (This was tested with a Romanian IP)</p><p>A <strong>data crawler</strong> (or web crawler) is an automated program or script that systematically browses the internet to collect and index data from websites.</p><p>In this case we will use the <a href="https://instaloader.github.io/"><strong>Instaloader</strong></a><strong> [2], </strong>a<strong> </strong>Python library that handles the crawling aspect and will provide us with all the information we want about a <strong>public</strong> Instagram profile.</p><pre>class InstagramCrawler:<br>    def __init__(self, page_name: str, proxy=None):<br>        self.page_name = page_name<br>        self.loader = instaloader.Instaloader()<br>        self._until = datetime.now()<br>        self._since = self._until - timedelta(days=7)<br><br>    def scrap(self) -&gt; List[Dict[str, str | Any]]:<br>        profile = instaloader.Profile.from_username(self.loader.context, self.page_name)<br>        posts = takewhile(lambda p: p.date &gt; self._since, dropwhile(lambda p: p.date &gt; self._until, profile.get_posts()))<br><br>        return [<br>            {&#39;content&#39;: post.caption, &#39;date&#39;: post.date, &#39;link&#39;: f&quot;https://www.instagram.com/{self.page_name}&quot;}<br>            for post in posts<br>        ]</pre><p>Here we use datetime.now()to get the exact date when we run this and subtract 7 days so we only get the post from last week.</p><p>We will also need a <strong>config.py </strong>module to create a <strong>Settings</strong> class where we will keep all constants and pass environment secrets to access them later in other methods instead of doing something like: <strong>os.getenv(&#39;SOME_ENV_VALUE&#39;)</strong>.</p><p>This is done with the help of the Pydantic <strong>BaseSettings</strong> class.</p><p>If you don’t know what Pydantic is, I recommend reading its documentation. Pydantic models are paramount in Python programming, and I will discuss them a bit later in this article.</p><pre>from pydantic_settings import BaseSettings, SettingsConfigDict<br><br><br>class Settings(BaseSettings):<br>    model_config = SettingsConfigDict(env_file=&#39;.env&#39;, env_file_encoding=&#39;utf-8&#39;, extra=&#39;ignore&#39;)<br><br>    # OPENAI<br>    OPENAI_API_KEY: str<br>    OPENAI_MODEl: str = &quot;gtp-4o-mini&quot;<br><br>    # DB<br>    MONGO_HOST: str = &#39;localhost&#39;<br>    MONGO_PORT: int = 27017<br>    MONGO_USER: str = None<br>    MONGO_PASSWORD: str = None<br>    MONGO_DATABASE: str = &#39;restaurants&#39;<br>    MONGO_URI: str = f&quot;mongodb://{MONGO_USER}:{MONGO_PASSWORD}@{MONGO_HOST}:{MONGO_PORT}&quot;<br><br>    # PROFILES TO CRAWL<br>    PROFILES_TO_SCRAP: dict = {<br>        &quot;KFC&quot;: {&quot;page_name&quot;: &quot;kfc&quot;, &quot;city&quot;: &quot;Salt Lake&quot;},<br>        &quot;MC&quot;: {&quot;page_name&quot;: &quot;mcdonalds&quot;, &quot;city&quot;: &quot;San Bernardino&quot;},<br>        &quot;In-N-Out Burger&quot;: {&quot;page_name&quot;: &quot;innout&quot;, &quot;city&quot;: &quot;Baldwin Park&quot;},<br>        &quot;Taco Bell&quot;: {&quot;page_name&quot;: &quot;tacobell&quot;, &quot;city&quot;: &quot;Downey&quot;},<br>        &quot;Wendy&#39;s&quot;: {&quot;page_name&quot;: &quot;wendys&quot;, &quot;city&quot;: &quot;Columbus&quot;},<br>    }<br><br><br>settings = Settings()</pre><h3>2. Data Storage</h3><p>I also added a database, in this case <a href="https://www.mongodb.com/"><strong>MongoDB</strong></a><strong>, </strong>because we are dealing with unstructured data. This way, we can store extracted posts if we want to do something with them later (better safe than<strong> sorry</strong>)<strong>.</strong></p><pre>from pymongo.errors import ConnectionFailure<br>from pymongo import MongoClient<br>from config import settings<br><br><br>class DatabaseConnection:<br>    _client: MongoClient = None<br><br>    @classmethod<br>    def connect(cls):<br>        if cls._client is None:<br>            try:<br>                cls._client = MongoClient(settings.MONGO_URI)<br>            except ConnectionFailure as exc:<br>                print(f&#39;Exception while connecting to database: {exc}&#39;)<br>                raise<br><br>    @classmethod<br>    def get_database(cls, name: str):<br>        if cls._client is None:<br>            cls.connect()<br>        return cls._client[name]<br><br>    @classmethod<br>    def close(cls):<br>        if cls._client is not None:<br>            cls._client.close()<br><br><br>database = DatabaseConnection.get_database(settings.MONGO_DATABASE)</pre><p>The db runs locally inside a <a href="https://www.docker.com/"><strong>Docker</strong></a> container.</p><pre>version: &#39;3.8&#39;<br><br>services:<br>  mongodb:<br>    image: mongo:latest<br>    container_name: mongo_db<br>    ports:<br>      - &quot;27017:27017&quot;<br>    volumes:<br>      - mongo-data:/data/db<br>    environment:<br>      MONGO_INITDB_ROOT_USERNAME: ${MONGO_USER}<br>      MONGO_INITDB_ROOT_PASSWORD: ${MONGO_PASSWORD}<br><br>volumes:<br>  mongo-data:</pre><h3>3. Prompt Engineering</h3><p>Prompt engineering can be summarized as designing and refining prompts to guide the behavior of language models or AI systems effectively. It involves crafting inputs to optimize the model’s output, ensuring it generates accurate, relevant, and coherent responses based on the user’s needs. In simpler terms, think of it as tweaking the input to maximize the quality of the output.</p><p>This is where the magic happens in this application.</p><p>At this step, we define the behavior of our LLM and instruct it on what information to look for and extract.</p><p>We also avoid hallucinations by having a second prompt to refine the response. This component is found within the <strong>templates.py</strong> module.</p><pre>PROFILES_REPORT_TEMPLATE = (<br>    &quot;You&#39;re a Restaurnat specialist. Analyze social media posts from various restaurant pages and create a concise report extracting the following information:\n&quot;<br>    &quot;1. Giveaways\n&quot;<br>    &quot;2. Events (including dates)\n&quot;<br>    &quot;3. Deals and discounts (e.g., price reductions, 1+1 offers)\n&quot;<br>    &quot;4. New menu items\n&quot;<br>    &quot;For each item, include:\n&quot;<br>    &quot;- Restaurant page name&quot;<br>    &quot;- Post link&quot;<br>    &quot;- Restaurant location (city)\n&quot;<br>    &quot;Only include information from the provided posts that fits these categories. Avoid descriptive posts about dishes unless they mention specific offers or discounts.\n&quot;<br>    &quot;Posts to analyze: {input_var}&quot;<br><br>)<br><br>PROFILES_TEMPLATE_REFINE = (<br>    &quot;You&#39;re a restaurant specialist who has generated a report on various restaurant social media posts.\n&quot;<br>    &quot;Previous report: {raport}\n&quot;<br>    &quot;This report needs to be more concise and follow a predefined structure:\n&quot;<br>    &quot;1. Analyze your previous report.\n&quot;<br>    &quot;2. Adapt the report to the following structure: {format_instructions}\n&quot;<br>    &quot;If there&#39;s no relevant information for a key, leave it as an empty list\n.&quot;<br>    &quot;Your response should only contain the specified structure, without ```json ``` tags.&quot;<br>)</pre><p><strong>The first prompt</strong> is designed to extract specific types of information from social media posts (like Instagram or Facebook), focusing only on relevant business-related information.</p><p>Restaurants frequently post about events, promotions, or new items, which are often mixed with unrelated content like dish descriptions or aesthetic photos. The goal of this prompt is to filter through the noise and extract key business-relevant data.</p><p><strong>The second prompt</strong> is a refinement stage to ensure that the initial output meets the predefined structure and is more concise.</p><p>After the initial extraction, we may still encounter data that isn’t perfectly formatted or is overly verbose. This prompt ensures that the model reanalyzes and formats the data correctly while removing unnecessary information.</p><h3>4. LLM Usage</h3><p>At this step there is not much work to be done. We need a method that allows us to create a conversational chain.</p><p>Here, we set up everything related to the LLM, like the model name. We pass the prompt and inject all the variables we might use into it, like the post extracted from the DB in the case of the first prompt presented above.</p><p>To achieve this, we will use <a href="https://python.langchain.com/docs/introduction/"><strong>Langchain</strong></a><strong> [3]</strong>, a framework designed to build applications around large language models (LLMs). It provides tools to manage prompts, connect LLMs with external data sources, handle <strong>chains of operations</strong>, and integrate models into applications like chatbots or question-answering systems, making it easier to develop AI-powered applications.</p><pre>from langchain.chains.llm import LLMChain<br>from langchain_core.prompts import PromptTemplate<br><br><br>def get_chain(llm, template: str, input_variables=None, verbose=True, output_key=&quot;&quot;):<br>    return LLMChain(<br>        llm=llm,<br>        prompt=PromptTemplate(<br>            input_variables=input_variables, template=template, verbose=verbose<br>        ),<br>        output_key=output_key,<br>        verbose=verbose,<br>    )</pre><p>For the LLM in this application, I chose to go with an <a href="https://openai.com/">OpenAI</a> model for its simplicity of use, so to use this method, you will need an OPENAI_API_KEY .</p><p>If you don’t want to use OpenAI, you can try using Grok API, which has the same API interface.</p><h3>5. Response Formatting</h3><p>Using generative AI usually results in diverse responses that sometimes might contain inaccurate information or lack the same structure.</p><p>This is bad if we want to write our report in Excel or CSV since we might get all sorts of errors when writing the file if we don’t have a predefined structure.</p><p>However, the good thing is that we can solve this problem by using <a href="https://docs.pydantic.dev/latest/">P<strong>ydantic</strong></a><strong> [4] </strong>(again). It allows developers to define data models using Python classes, ensuring that data adheres to specified <strong>types</strong> and <strong>constraints</strong> while providing automatic type conversion and detailed error messages.</p><p>Here we implement 3 pydantic classes that will be passed to the second prompt, presented above, for formatting the LLM response to a predefined structure that can be later written as an EXCEL.</p><pre>from pydantic import BaseModel, Field<br><br><br>class InformationProfiles(BaseModel):<br>    name: str = Field(description=&#39;Name of the page from where the information was extracted&#39;)<br>    information: str = Field(description=&#39;Information extracted for the specified key.&#39;)<br>    link: str = Field(description=&#39;Link of the post from where the information was extracted.&#39;)<br>    city: str = Field(description=&#39;City of the restaurant.&#39;)<br><br><br>class FieldProfiles(BaseModel):<br>    name: str = Field(description=&#39;Name of the key. Available options are: Giveaways, Deals and Discounts, Events.&#39;)<br>    keys: list[InformationProfiles] = Field(description=&#39;List of restaurants and the information given about them.&#39;)<br><br><br>class ReportProfiles(BaseModel):<br>    name: str = Field(description=&#39;Name of the report: REPORT RESTAURANTS NEWS&#39;)<br>    fields: list[FieldProfiles] = Field(description=&#39;List of all relevant keys for this report.&#39;)</pre><h3>6. Putting Everything Together</h3><p>All we have to do is put everything together in our <strong>report_generator.py</strong> module.</p><p>For this, we will create a class that will encapsulate all the logic:</p><pre>import datetime<br>import io<br>import json<br><br>import pandas as pd<br><br>from typing import List, Dict, Any<br>from langchain_core.output_parsers import PydanticOutputParser<br>from langchain_openai import ChatOpenAI<br><br>from src.config import settings<br>from src.crawler import InstagramCrawler<br>from src.db import database<br>from src.llm import get_chain<br>from schemas import ReportProfiles<br>from templates import PROFILES_REPORT_TEMPLATE, PROFILES_TEMPLATE_REFINE<br><br><br>class ReportGenerator:<br>    def __init__(self):<br>        self.crawler = InstagramCrawler()<br>        self.database = database<br>        self.llm = ChatOpenAI(model_name=settings.OPENAI_MODEl, api_key=settings.OPENAI_API_KEY)<br><br>    def crawl_and_store_posts(self):<br>        posts = self.crawler.get_posts(settings.PROFILES_TO_SCRAP)<br>        posts_collection = self.database[&#39;instagram_posts&#39;]<br>        for post in posts:<br>            posts_collection.update_one(<br>                {&#39;link&#39;: post[&#39;link&#39;]},<br>                {&#39;$set&#39;: post},<br>                upsert=True<br>            )<br>        return len(posts)<br><br>    def get_posts_from_db(self) -&gt; List[Dict[str, Any]]:<br>        posts_collection = self.database[&#39;instagram_posts&#39;]<br>        end_date = datetime.datetime.now()<br>        start_date = end_date - datetime.timedelta(days=7)<br>        return list(posts_collection.find({<br>            &#39;date&#39;: {&#39;$gte&#39;: start_date, &#39;$lte&#39;: end_date}<br>        }))<br><br>    @staticmethod<br>    def get_posts_text(posts: List[Dict[str, Any]]) -&gt; List[str]:<br>        unique_posts = set()<br>        for post in posts:<br>            post_text = post.get(&quot;content&quot;, &quot;&quot;)<br>            page_text = post.get(&quot;restaurant_name&quot;, &quot;&quot;)<br>            link_text = post.get(&quot;link&quot;, &quot;&quot;)<br>            city_text = post.get(&quot;city&quot;, &quot;&quot;)<br><br>            if post_text:<br>                unique_posts.add(f&quot;{post_text} | {page_text} | {link_text} | {city_text}\n&quot;)<br><br>        return list(unique_posts)<br><br>    def create_report(self, posts: List[str]) -&gt; str:<br>        chain_1 = get_chain(<br>            self.llm,<br>            PROFILES_REPORT_TEMPLATE,<br>            input_variables=[&quot;input_var&quot;],<br>            output_key=&quot;report&quot;,<br>        )<br><br>        result_1 = chain_1.invoke({&quot;input_var&quot;: posts})<br>        report = result_1[&quot;report&quot;]<br><br>        output_parser = PydanticOutputParser(pydantic_object=ReportProfiles)<br>        format_output = {&quot;format_instructions&quot;: output_parser.get_format_instructions()}<br><br>        chain_2 = get_chain(<br>            self.llm,<br>            PROFILES_TEMPLATE_REFINE,<br>            input_variables=[&quot;raport&quot;, &quot;format_instructions&quot;],<br>            output_key=&quot;formatted_report&quot;,<br>        )<br><br>        result_2 = chain_2.invoke({&quot;raport&quot;: report, &quot;format_instructions&quot;: format_output})<br><br>        return result_2[&quot;formatted_report&quot;]<br><br>    @staticmethod<br>    def create_excel_file(data: Dict[str, Any]):<br>        rows = []<br>        excel_filename = f&quot;Profiles_report_{datetime.datetime.now().strftime(&#39;%Y-%m-%d&#39;)}.xlsx&quot;<br><br>        report_name = data.get(&quot;name&quot;, &quot;Unknown Report&quot;)<br>        for field in data.get(&quot;fields&quot;, []):<br>            field_name = field.get(&quot;name&quot;, &quot;Unknown Field&quot;)<br>            for key in field.get(&quot;keys&quot;, []):<br>                rows.append({<br>                    &quot;Type of Report&quot;: report_name,<br>                    &quot;Type of Information&quot;: field_name,<br>                    &quot;Source&quot;: key.get(&quot;name&quot;, &quot;no name&quot;),<br>                    &quot;Information&quot;: key.get(&quot;information&quot;, &quot;no information&quot;),<br>                    &quot;Link&quot;: key.get(&quot;link&quot;, &quot;no link&quot;),<br>                    &quot;City&quot;: key.get(&quot;city&quot;, &quot;no city&quot;),<br>                })<br><br>        df = pd.DataFrame(rows)<br>        buffer = io.BytesIO()<br>        df.to_excel(buffer, index=False)<br>        buffer.seek(0)<br><br>        return buffer, excel_filename<br><br>    def generate_report(self):<br>        # Step 1: Crawl and store Instagram posts<br>        posts_count = self.crawl_and_store_posts()<br>        print(f&quot;Crawled and stored {posts_count} posts.&quot;)<br><br>        # Step 2: Retrieve posts from the database<br>        db_posts = self.get_posts_from_db()<br>        print(f&quot;Retrieved {len(db_posts)} posts from the database.&quot;)<br><br>        # Step 3: Process posts and create report<br>        posts_text = self.get_posts_text(db_posts)<br>        report_data_str = self.create_report(posts_text)<br>        print(f&quot;Generated report from posts: {report_data_str}&quot;)<br><br>        # Parse the JSON string<br>        try:<br>            report_data = json.loads(report_data_str)<br>        except json.JSONDecodeError:<br>            print(&quot;Error: Unable to parse the report data as JSON.&quot;)<br>            return None<br><br>        # Step 4: Create Excel file<br>        excel_buffer, excel_filename = self.create_excel_file(report_data)<br><br>        # Step 5: Save Excel file<br>        with open(excel_filename, &#39;wb&#39;) as f:<br>            f.write(excel_buffer.getvalue())<br><br>        print(f&quot;Excel file &#39;{excel_filename}&#39; has been created successfully.&quot;)<br>        return excel_filename</pre><p>The generate_report() method is the “<strong>entry point</strong>” into this application and inside we have all the steps needed to generate a weekly report.</p><p>Since this class is big, I will detail each step presented in the <strong>generate_report()</strong> method:</p><p><strong>1</strong>. self.crawl_and_store_posts():</p><p>This method retrieves last week’s posts from the selected Instagram profiles and stores them in our database.</p><p><strong>2. </strong>self.get_posts_from_db() :</p><p>Here, we extract all the posts that we stored inside the DB but also apply a filtering logic based on date since we might have posts stored from previous weeks and don’t want to retrieve them.</p><p><strong>3.</strong> self.get_posts_text() and self.create_report() :</p><p>The first method is used to extract all the information that we will pass to the prompt as an input variable from the returned db models.</p><p>Then we have the second method, where the LLM receives the prompts and creates the report.</p><p><strong>4. </strong>self.create_excel_file() :</p><p>Before this step we first need to call json.loads(report_data_str) so we can use JSON format to write the EXCEL. If we do a print here the report might look something like this:</p><pre>{<br>  &quot;name&quot;: &quot;REPORT RESTAURANTS NEWS&quot;,<br>  &quot;fields&quot;: [<br>    {<br>      &quot;name&quot;: &quot;Giveaways&quot;,<br>      &quot;keys&quot;: []<br>    },<br>    {<br>      &quot;name&quot;: &quot;Deals and Discounts&quot;,<br>      &quot;keys&quot;: []<br>    },<br>    {<br>      &quot;name&quot;: &quot;Events&quot;,<br>      &quot;keys&quot;: [<br>        {<br>          &quot;name&quot;: &quot;Taco Bell&quot;,<br>          &quot;information&quot;: &quot;Early access event for the disha hot discovery box on 9/24 &amp; 9/25.&quot;,<br>          &quot;link&quot;: &quot;https://www.instagram.com/tacobell&quot;,<br>          &quot;city&quot;: &quot;Downey&quot;<br>        }<br>      ]<br>    }<br>  ]<br>}</pre><p>This hole application can efficiently be run using the following commands in the terminat: make setup and make run after, or you can use make help to see a list of all available commands.</p><h3>Conclusion</h3><p>I hope that you have learned how to use LLMs to extract information from social media platforms by reading this article (or skipping through lines of code as some people do 🤫).</p><p>I also think that the best way to learn is to put things into practice, and I encourage you to take what I have implemented here and customize it to suit your own needs.</p><p>This application can be changed to suit any use case and integrated with other crawlers if you want data from different social media sites.</p><blockquote><em>You can find the full code on GitHub </em><a href="https://github.com/decodingml/articles-code/tree/main/articles/generative_ai/data_extraction_from_social_media_posts_using_llms"><strong><em>here</em></strong></a><strong><em> [1]</em></strong><em>.</em></blockquote><p>Ultimately, I want to give a big shout-out to the guys from Decoding ML who have me as a guest writer for the first time. I am super grateful for this opportunity and what I learned from them.</p><p>I encourage you to check the <strong><em>weekly</em></strong> 𝗗𝗲𝗰𝗼𝗱𝗶𝗻𝗴 𝗠𝗟 𝗡𝗲𝘄𝘀𝗹𝗲𝘁𝘁𝗲𝗿 on Substack for more <em>TOP-NOTCH</em> articles covering production AI and MLOps.</p><p><a href="https://decodingml.substack.com/?source=post_page-----2cc6bb01141f--------------------------------">Decoding ML Newsletter | Paul Iusztin | Substack</a></p><h3>References</h3><p>[1] <a href="https://github.com/decodingml/articles-code/tree/data_extraction_from_social_media_posts">Data extraction from Social Media posts using LLM’s — Github Repository</a> (2024), Decoding ML GitHub Organization</p><p>[2] <a href="https://instaloader.github.io/">Instaloader Documentation</a> (2024), Instaloader</p><p>[3] <a href="https://python.langchain.com/docs/introduction/">Langchain Documentation</a> (2024), Langchain</p><p>[4] <a href="https://docs.pydantic.dev/latest/">Pydantic Documentation</a> (2024), Pydantic</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6ebe0e2cdeb1" width="1" height="1" alt=""><hr><p><a href="https://medium.com/decodingai/from-posts-to-reports-leveraging-llms-for-social-media-data-mining-6ebe0e2cdeb1">From Posts to Reports: Leveraging LLMs for Social Media Data Mining</a> was originally published in <a href="https://medium.com/decodingai">Decoding AI Magazine</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>