{"id":165,"date":"2026-11-26T18:00:00","date_gmt":"2026-11-26T12:30:00","guid":{"rendered":"https:\/\/blogs.projectduniya.com\/?p=165"},"modified":"2026-11-26T14:33:31","modified_gmt":"2026-11-26T09:03:31","slug":"fake-news-detection-using-nlp-and-machine-learning-complete-python-project","status":"publish","type":"post","link":"https:\/\/blogs.projectduniya.com\/index.php\/2026\/11\/26\/fake-news-detection-using-nlp-and-machine-learning-complete-python-project\/","title":{"rendered":"Fake News Detection Using NLP and Machine Learning: Complete Python Project"},"content":{"rendered":"\n<style>\n.pd-article {\n  font-family: Arial, Helvetica, sans-serif;\n  font-size: 16px;\n  line-height: 1.8;\n  color: #263238;\n}\n.pd-article h2 {\n  color: #17365d;\n  font-size: 27px;\n  line-height: 1.35;\n  margin: 34px 0 14px;\n}\n.pd-article h3 {\n  color: #24527a;\n  font-size: 21px;\n  line-height: 1.4;\n  margin: 25px 0 10px;\n}\n.pd-article p { margin: 0 0 16px; }\n.pd-article ul, .pd-article ol { padding-left: 25px; margin: 0 0 20px; }\n.pd-article li { margin-bottom: 8px; }\n.pd-article a { color: #0875c9; text-decoration: underline; }\n.pd-article .pd-note {\n  background: #eaf4ff;\n  border-left: 4px solid #2684d9;\n  padding: 15px 18px;\n  margin: 20px 0;\n  border-radius: 4px;\n}\n.pd-article .pd-example {\n  background: #f4f7fa;\n  border: 1px solid #d9e2ec;\n  padding: 15px 18px;\n  border-radius: 6px;\n  margin: 18px 0;\n}\n.pd-article .pd-table-wrap {\n  width: 100%;\n  overflow-x: auto;\n  margin: 18px 0 24px;\n}\n.pd-article table {\n  width: 100%;\n  border-collapse: collapse;\n  min-width: 520px;\n}\n.pd-article th, .pd-article td {\n  border: 1px solid #cbd5df;\n  padding: 11px 13px;\n  text-align: left;\n}\n.pd-article th {\n  background: #17365d;\n  color: #fff;\n}\n.pd-article tr:nth-child(even) { background: #f1f5f9; }\n.pd-article pre {\n  background: #17212b;\n  color: #e8f0f7;\n  padding: 17px;\n  border-radius: 7px;\n  overflow-x: auto;\n  white-space: pre;\n  font-size: 13px;\n  line-height: 1.6;\n  margin: 16px 0 22px;\n}\n.pd-article code {\n  font-family: Consolas, Monaco, monospace;\n}\n.pd-article .pd-conclusion {\n  background: #edf7f1;\n  border-left: 4px solid #23965b;\n  padding: 17px 19px;\n  margin: 25px 0;\n  border-radius: 5px;\n}\n<\/style>\n\n<div class=\"pd-article\">\n\n<h2>Introduction<\/h2>\n\n<p>Fake news and online misinformation can spread through websites, social media platforms, messaging applications and other digital channels. Readers may find it difficult to distinguish trustworthy reporting from misleading or fabricated content, especially when information is shared without checking its original source.<\/p>\n\n<p>A Fake News Detection System is a machine-learning project that analyses the text of a news article and predicts whether it resembles examples labelled as real or fake in a training dataset. It combines Natural Language Processing (NLP), text feature extraction and a classification algorithm.<\/p>\n\n<p>In this tutorial, you will build a working Fake News Detection application using Python, Pandas, Scikit-learn and Streamlit. The project will train a model, evaluate its performance, save the trained pipeline and provide a simple web interface for testing news text.<\/p>\n\n<div class=\"pd-note\">\n<strong>Important:<\/strong> This application learns patterns from a labelled dataset. It does not independently verify claims, investigate sources or establish whether a particular event happened. Its predictions should never be treated as proof that an article is true or false.\n<\/div>\n\n<h2>1. Project Overview<\/h2>\n\n<p>The project accepts a news headline and article body as input. It combines the text, converts it into numerical features and sends those features to a trained machine-learning classifier.<\/p>\n\n<div class=\"pd-table-wrap\">\n<table>\n<thead><tr><th>Project detail<\/th><th>Description<\/th><\/tr><\/thead>\n<tbody>\n<tr><td>Project name<\/td><td>Fake News Detection System<\/td><\/tr>\n<tr><td>Programming language<\/td><td>Python<\/td><\/tr>\n<tr><td>Domain<\/td><td>Artificial Intelligence and Machine Learning<\/td><\/tr>\n<tr><td>NLP technique<\/td><td>TF-IDF vectorization<\/td><\/tr>\n<tr><td>Classification algorithm<\/td><td>Logistic Regression<\/td><\/tr>\n<tr><td>Dataset<\/td><td>WELFake<\/td><\/tr>\n<tr><td>Web interface<\/td><td>Streamlit<\/td><\/tr>\n<tr><td>Output<\/td><td>Predicted class and model probability<\/td><\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n\n<h2>2. Project Objectives<\/h2>\n\n<ul>\n<li>Understand how NLP can be used for text classification.<\/li>\n<li>Prepare a labelled news dataset for machine learning.<\/li>\n<li>Convert news text into numerical TF-IDF features.<\/li>\n<li>Train a Logistic Regression classification model.<\/li>\n<li>Evaluate the model using accuracy, precision, recall and F1-score.<\/li>\n<li>Save the trained model for later use.<\/li>\n<li>Develop a simple web application for interactive predictions.<\/li>\n<li>Understand the limitations and ethical considerations of automated misinformation classification.<\/li>\n<\/ul>\n\n<h2>3. Technologies and Tools Required<\/h2>\n\n<div class=\"pd-table-wrap\">\n<table>\n<thead><tr><th>Technology<\/th><th>Purpose<\/th><\/tr><\/thead>\n<tbody>\n<tr><td>Python<\/td><td>Main programming language<\/td><\/tr>\n<tr><td>Pandas<\/td><td>Dataset loading and data preparation<\/td><\/tr>\n<tr><td>Scikit-learn<\/td><td>Feature extraction, model training and evaluation<\/td><\/tr>\n<tr><td>TF-IDF<\/td><td>Converting text into numerical features<\/td><\/tr>\n<tr><td>Logistic Regression<\/td><td>Classifying news text<\/td><\/tr>\n<tr><td>Joblib<\/td><td>Saving and loading the trained pipeline<\/td><\/tr>\n<tr><td>Streamlit<\/td><td>Creating the web interface<\/td><\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n\n<h2>4. Dataset for Fake News Detection<\/h2>\n\n<p>This project uses the WELFake dataset. It contains 72,134 news articles, including 35,028 labelled as real and 37,106 labelled as fake. The dataset combines material from four existing news datasets and provides headline, article text and label fields.<\/p>\n\n<p>The label convention is:<\/p>\n\n<ul>\n<li><strong>0:<\/strong> Fake news<\/li>\n<li><strong>1:<\/strong> Real news<\/li>\n<\/ul>\n\n<p>You can obtain the dataset from the official Zenodo record:<\/p>\n\n<p><a href=\"https:\/\/zenodo.org\/records\/4561253\" target=\"_blank\" rel=\"noopener noreferrer\">Download or view the WELFake dataset on Zenodo<\/a>.<\/p>\n\n<div class=\"pd-note\">\n<strong>Dataset preparation:<\/strong> Download <code>WELFake_Dataset.csv<\/code> and place it in the project directory. Check the dataset&#8217;s licence and attribution requirements before redistributing it or using it in a commercial application.\n<\/div>\n\n<h3>Understanding the dataset columns<\/h3>\n\n<div class=\"pd-table-wrap\">\n<table>\n<thead><tr><th>Column<\/th><th>Meaning<\/th><\/tr><\/thead>\n<tbody>\n<tr><td>Unnamed: 0<\/td><td>Dataset row identifier, if present<\/td><\/tr>\n<tr><td>title<\/td><td>News headline<\/td><\/tr>\n<tr><td>text<\/td><td>Full news article text<\/td><\/tr>\n<tr><td>label<\/td><td>Target classification: 0 or 1<\/td><\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n\n<h2>5. How the System Works<\/h2>\n\n<p>The application follows a standard supervised text-classification workflow.<\/p>\n\n<div class=\"pd-example\">\n<strong>Project workflow<\/strong>\n<p>WELFake Dataset \u2192 Data Cleaning \u2192 Train-Test Split \u2192 TF-IDF Feature Extraction \u2192 Logistic Regression \u2192 Model Evaluation \u2192 Save Model \u2192 Streamlit Prediction Interface<\/p>\n<\/div>\n\n<h3>Step 1: Data collection<\/h3>\n<p>Load the labelled news articles from the CSV dataset. Each record should contain a headline, article text and corresponding label.<\/p>\n\n<h3>Step 2: Text preparation<\/h3>\n<p>Combine the headline and article body into one text field. Handle missing values and remove records without usable text or valid labels.<\/p>\n\n<h3>Step 3: Train-test splitting<\/h3>\n<p>Divide the dataset into training and testing portions. The training data teaches the classifier, while the test data provides an independent evaluation of its performance.<\/p>\n\n<h3>Step 4: TF-IDF feature extraction<\/h3>\n<p>TF-IDF stands for Term Frequency-Inverse Document Frequency. It assigns numerical weights to words and phrases based on their frequency in a document and their distribution across the collection of documents.<\/p>\n\n<h3>Step 5: Model training<\/h3>\n<p>Train a Logistic Regression classifier using the TF-IDF features and the known dataset labels.<\/p>\n\n<h3>Step 6: Prediction<\/h3>\n<p>When a user enters news text, the saved pipeline transforms the text and predicts the class.<\/p>\n\n<h2>6. Create the Project Directory<\/h2>\n\n<p>Create a folder named <code>fake_news_detection<\/code> and arrange the files as follows:<\/p>\n\n<pre><code>fake_news_detection\/\n\u2502\n\u251c\u2500\u2500 WELFake_Dataset.csv\n\u251c\u2500\u2500 train_model.py\n\u251c\u2500\u2500 app.py\n\u251c\u2500\u2500 requirements.txt\n\u2514\u2500\u2500 models\/\n    \u2514\u2500\u2500 fake_news_pipeline.joblib<\/code><\/pre>\n\n<p>The <code>models<\/code> directory and model file will be created automatically when the training script runs successfully.<\/p>\n\n<h2>7. Install the Required Libraries<\/h2>\n\n<p>Open a terminal inside the project directory and create a virtual environment.<\/p>\n\n<pre><code>python -m venv venv<\/code><\/pre>\n\n<p>Activate it on Windows:<\/p>\n\n<pre><code>venv\\Scripts\\activate<\/code><\/pre>\n\n<p>On macOS or Linux:<\/p>\n\n<pre><code>source venv\/bin\/activate<\/code><\/pre>\n\n<p>Create a file named <code>requirements.txt<\/code> and add:<\/p>\n\n<pre><code>pandas\nscikit-learn\njoblib\nstreamlit<\/code><\/pre>\n\n<p>Install the dependencies:<\/p>\n\n<pre><code>pip install -r requirements.txt<\/code><\/pre>\n\n<h2>8. Build the Machine Learning Training Script<\/h2>\n\n<p>Create <code>train_model.py<\/code>. This script loads the dataset, prepares the text, splits the data, trains the model, prints evaluation metrics and saves the complete machine-learning pipeline.<\/p>\n\n<pre><code>import os\nimport pandas as pd\nimport joblib\n\nfrom sklearn.model_selection import train_test_split\nfrom sklearn.pipeline import Pipeline\nfrom sklearn.feature_extraction.text import TfidfVectorizer\nfrom sklearn.linear_model import LogisticRegression\nfrom sklearn.metrics import (\n    accuracy_score,\n    classification_report,\n    confusion_matrix\n)\n\n\nDATASET_PATH = \"WELFake_Dataset.csv\"\nMODEL_DIR = \"models\"\nMODEL_PATH = os.path.join(\n    MODEL_DIR,\n    \"fake_news_pipeline.joblib\"\n)\n\n\ndef load_dataset(path):\n    if not os.path.exists(path):\n        raise FileNotFoundError(\n            f\"Dataset not found: {path}\"\n        )\n\n    df = pd.read_csv(path)\n\n    required_columns = {\"title\", \"text\", \"label\"}\n\n    if not required_columns.issubset(df.columns):\n        raise ValueError(\n            \"Dataset must contain title, text and label columns.\"\n        )\n\n    return df\n\n\ndef prepare_data(df):\n    df = df.copy()\n\n    df[\"title\"] = df[\"title\"].fillna(\"\")\n    df[\"text\"] = df[\"text\"].fillna(\"\")\n\n    df[\"content\"] = (\n        df[\"title\"].astype(str) + \" \" +\n        df[\"text\"].astype(str)\n    ).str.strip()\n\n    df[\"label\"] = pd.to_numeric(\n        df[\"label\"],\n        errors=\"coerce\"\n    )\n\n    df = df.dropna(subset=[\"label\"])\n\n    df = df[df[\"label\"].isin([0, 1])]\n\n    df = df[df[\"content\"].str.len() > 0]\n\n    X = df[\"content\"]\n    y = df[\"label\"].astype(int)\n\n    if y.nunique() != 2:\n        raise ValueError(\n            \"The dataset must contain both classes: 0 and 1.\"\n        )\n\n    return X, y\n\n\ndef train():\n    print(\"Loading dataset...\")\n\n    df = load_dataset(DATASET_PATH)\n\n    print(\"Preparing text data...\")\n\n    X, y = prepare_data(df)\n\n    print(\"Total usable records:\", len(X))\n    print(\"Class distribution:\")\n    print(y.value_counts())\n\n    X_train, X_test, y_train, y_test = train_test_split(\n        X,\n        y,\n        test_size=0.20,\n        random_state=42,\n        stratify=y\n    )\n\n    pipeline = Pipeline([\n        (\n            \"tfidf\",\n            TfidfVectorizer(\n                stop_words=\"english\",\n                max_features=50000,\n                ngram_range=(1, 2),\n                min_df=2,\n                max_df=0.95,\n                sublinear_tf=True\n            )\n        ),\n        (\n            \"classifier\",\n            LogisticRegression(\n                max_iter=1000,\n                class_weight=\"balanced\"\n            )\n        )\n    ])\n\n    print(\"Training model...\")\n\n    pipeline.fit(X_train, y_train)\n\n    print(\"Evaluating model...\")\n\n    predictions = pipeline.predict(X_test)\n\n    accuracy = accuracy_score(\n        y_test,\n        predictions\n    )\n\n    print(\"\\nAccuracy:\", round(accuracy, 4))\n\n    print(\"\\nClassification Report:\")\n    print(\n        classification_report(\n            y_test,\n            predictions,\n            target_names=[\"Fake\", \"Real\"],\n            zero_division=0\n        )\n    )\n\n    print(\"\\nConfusion Matrix:\")\n    print(confusion_matrix(y_test, predictions))\n\n    os.makedirs(MODEL_DIR, exist_ok=True)\n\n    joblib.dump(pipeline, MODEL_PATH)\n\n    print(\"\\nModel saved successfully:\")\n    print(MODEL_PATH)\n\n\nif __name__ == \"__main__\":\n    train()<\/code><\/pre>\n\n<h3>Understanding the training code<\/h3>\n\n<ul>\n<li><code>read_csv()<\/code> loads the dataset into a Pandas DataFrame.<\/li>\n<li><code>fillna()<\/code> replaces missing headline and article text with empty strings.<\/li>\n<li><code>train_test_split()<\/code> separates training and testing records while preserving the class proportions through stratification.<\/li>\n<li><code>TfidfVectorizer()<\/code> converts text into numerical features using single words and two-word phrases.<\/li>\n<li><code>LogisticRegression()<\/code> learns a classification boundary from the training examples.<\/li>\n<li><code>classification_report()<\/code> displays precision, recall and F1-score for both classes.<\/li>\n<li><code>joblib.dump()<\/code> saves the complete pipeline so the application can reuse the same text-processing and classification steps.<\/li>\n<\/ul>\n\n<div class=\"pd-note\">\n<strong>Why save the complete pipeline?<\/strong> The vectorizer must be fitted on training data only. Saving it together with the classifier ensures that new text is transformed using the same learned vocabulary and TF-IDF weights.\n<\/div>\n\n<h2>9. Train the Model<\/h2>\n\n<p>Run the following command from the project directory:<\/p>\n\n<pre><code>python train_model.py<\/code><\/pre>\n\n<p>The script will load the dataset, prepare the text, train the classifier and display the evaluation results. If training completes successfully, the model will be saved in the <code>models<\/code> folder.<\/p>\n\n<p>Your actual accuracy and classification report will depend on the dataset file, its contents, preprocessing and software versions. Do not copy an accuracy figure from another project and present it as the result of your own experiment.<\/p>\n\n<h2>10. Evaluate the Model<\/h2>\n\n<p>Model evaluation is essential because a classifier may perform well on some examples but fail on others. Use more than one metric to understand its behaviour.<\/p>\n\n<h3>Accuracy<\/h3>\n<p>Accuracy measures the proportion of all test predictions that are correct.<\/p>\n\n<p><strong>Accuracy = Correct Predictions \/ Total Predictions<\/strong><\/p>\n\n<h3>Precision<\/h3>\n<p>Precision measures how many predictions for a particular class were correct. For example, fake-news precision indicates the proportion of articles predicted as fake that were labelled fake in the test data.<\/p>\n\n<h3>Recall<\/h3>\n<p>Recall measures how many actual examples of a class were correctly identified by the classifier.<\/p>\n\n<h3>F1-score<\/h3>\n<p>The F1-score combines precision and recall using their harmonic mean. It is useful when you want to consider both false positives and false negatives.<\/p>\n\n<h3>Confusion matrix<\/h3>\n<p>A confusion matrix shows how many fake and real examples were correctly or incorrectly classified. It helps identify which type of mistake is more common.<\/p>\n\n<div class=\"pd-note\">\n<strong>Evaluation advice:<\/strong> A random train-test split is a useful starting point, but it does not guarantee that articles from the same source, event or time period are separated. Duplicate and near-duplicate articles can make evaluation results look better than real-world performance. For stronger research, investigate duplicates and test the model on a separate source or later time period.\n<\/div>\n\n<h2>11. Create the Streamlit Web Application<\/h2>\n\n<p>Now create <code>app.py<\/code>. The application will allow users to enter a headline and article text, submit the content and view the model&#8217;s prediction.<\/p>\n\n<pre><code>import os\nimport joblib\nimport streamlit as st\n\n\nMODEL_PATH = os.path.join(\n    \"models\",\n    \"fake_news_pipeline.joblib\"\n)\n\n\nst.set_page_config(\n    page_title=\"Fake News Detection\",\n    page_icon=\"\ud83d\udcf0\",\n    layout=\"centered\"\n)\n\n\n@st.cache_resource\ndef load_model():\n    if not os.path.exists(MODEL_PATH):\n        return None\n\n    return joblib.load(MODEL_PATH)\n\n\nst.title(\"\ud83d\udcf0 Fake News Detection System\")\n\nst.write(\n    \"Enter a news headline and article text \"\n    \"to receive a machine-learning classification.\"\n)\n\nmodel = load_model()\n\nif model is None:\n    st.error(\n        \"Trained model not found. \"\n        \"Run python train_model.py first.\"\n    )\n    st.stop()\n\n\ntitle = st.text_input(\n    \"News Headline\",\n    placeholder=\"Enter the news headline\"\n)\n\narticle = st.text_area(\n    \"News Article\",\n    placeholder=\"Paste the article content here...\",\n    height=250\n)\n\nif st.button(\"Analyze News\", type=\"primary\"):\n\n    content = (title + \" \" + article).strip()\n\n    if len(content) < 80:\n        st.warning(\n            \"Please provide a longer headline and article \"\n            \"so the model has more text to analyse.\"\n        )\n\n    else:\n        prediction = int(model.predict([content])[0])\n\n        st.subheader(\"Model Prediction\")\n\n        if prediction == 0:\n            st.error(\"Prediction: FAKE\")\n        else:\n            st.success(\"Prediction: REAL\")\n\n        if hasattr(model, \"predict_proba\"):\n            probabilities = model.predict_proba([content])[0]\n\n            classes = list(model.classes_)\n\n            fake_probability = probabilities[\n                classes.index(0)\n            ]\n\n            real_probability = probabilities[\n                classes.index(1)\n            ]\n\n            st.write(\n                f\"Fake-class probability: \"\n                f\"{fake_probability:.2%}\"\n            )\n\n            st.write(\n                f\"Real-class probability: \"\n                f\"{real_probability:.2%}\"\n            )\n\n        st.info(\n            \"This is an automated model prediction, \"\n            \"not independent fact verification. \"\n            \"Check the original source and reliable \"\n            \"independent reporting before sharing news.\"\n        )<\/code><\/pre>\n\n<h3>How the web application works<\/h3>\n\n<ol>\n<li>Streamlit loads the saved model pipeline.<\/li>\n<li>The user enters a headline and article body.<\/li>\n<li>The application combines the two text fields.<\/li>\n<li>The saved TF-IDF vectorizer transforms the input.<\/li>\n<li>Logistic Regression predicts the class.<\/li>\n<li>The application displays the predicted class and, when available, the model's class probabilities.<\/li>\n<\/ol>\n\n<p>The probability values are outputs from the classifier. They should not be interpreted as the verified probability that a news article is factually true or false.<\/p>\n\n<h2>12. Run the Complete Application<\/h2>\n\n<p>Make sure that you have already trained the model. Then run:<\/p>\n\n<pre><code>streamlit run app.py<\/code><\/pre>\n\n<p>Streamlit will start a local development server. Open the local address displayed in your terminal, normally:<\/p>\n\n<pre><code>http:\/\/localhost:8501<\/code><\/pre>\n\n<p>Enter a headline and article body, then click <strong>Analyze News<\/strong>. The application will display the model's prediction.<\/p>\n\n<h2>13. Sample Testing Scenarios<\/h2>\n\n<p>Use different kinds of test inputs to check how the application responds. These are testing scenarios, not guaranteed predictions.<\/p>\n\n<div class=\"pd-example\">\n<strong>Test 1: A detailed article from a known dataset example<\/strong>\n<p>Paste a complete article that is present in the dataset and check whether the prediction matches its recorded label. Remember that a training example is not an independent test.<\/p>\n<\/div>\n\n<div class=\"pd-example\">\n<strong>Test 2: A short headline without article context<\/strong>\n<p>Enter only a few words. The application should request more text because a short headline may not contain enough information for a meaningful classification.<\/p>\n<\/div>\n\n<div class=\"pd-example\">\n<strong>Test 3: An article about a topic not represented in training<\/strong>\n<p>Try a recent scientific, economic or local news article. Compare the output with reliable independent reporting. This helps demonstrate the model's limitations on unfamiliar material.<\/p>\n<\/div>\n\n<div class=\"pd-\n","protected":false},"excerpt":{"rendered":"<p>Fake News Detection Using NLP and Machine Learning: Complete Python Project<\/p>\n","protected":false},"author":1,"featured_media":166,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[4,9],"tags":[14,210,119,211,15,174,27,17,212,213,209],"class_list":["post-165","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-ai-machine-learning","category-final-year-projects","tag-ai-projects","tag-fake-news-detection","tag-final-year-project","tag-logistic-regression","tag-machine-learning","tag-natural-language-processing","tag-nlp-projects","tag-python-projects","tag-streamlit","tag-text-classification","tag-tf-idf"],"jetpack_publicize_connections":[],"_links":{"self":[{"href":"https:\/\/blogs.projectduniya.com\/index.php\/wp-json\/wp\/v2\/posts\/165","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blogs.projectduniya.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blogs.projectduniya.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blogs.projectduniya.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blogs.projectduniya.com\/index.php\/wp-json\/wp\/v2\/comments?post=165"}],"version-history":[{"count":1,"href":"https:\/\/blogs.projectduniya.com\/index.php\/wp-json\/wp\/v2\/posts\/165\/revisions"}],"predecessor-version":[{"id":167,"href":"https:\/\/blogs.projectduniya.com\/index.php\/wp-json\/wp\/v2\/posts\/165\/revisions\/167"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/blogs.projectduniya.com\/index.php\/wp-json\/wp\/v2\/media\/166"}],"wp:attachment":[{"href":"https:\/\/blogs.projectduniya.com\/index.php\/wp-json\/wp\/v2\/media?parent=165"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blogs.projectduniya.com\/index.php\/wp-json\/wp\/v2\/categories?post=165"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blogs.projectduniya.com\/index.php\/wp-json\/wp\/v2\/tags?post=165"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}