Ayurvedic Astrology
  • Home
  • Astrology Readings
    • Bookings
    • Vintage Reviews
    • World Renown
  • Resources
    • Media >
      • Articles
    • Calculators >
      • Astrology Centric >
        • Any Asteroid
        • Calendar Convert
        • Find Location DMS
        • Katapayadi Calculator
        • Real-time Gold & Silver Prices
        • Simple Star Calculator
        • Varsha Phala and Tithi Pravesh Location Finder
        • Earthquake Predictor
      • AI Centric >
        • Ask Charak
        • Handwriting Analysis
        • History Predictor
        • Personality Trait Predictor
        • TruthBot
    • Research >
      • Bibliography
      • Coding
      • NASA Research Tool
      • Degrees Spreadsheet
    • Privacy Policy
  • Store
    • Astrology
    • Jewelry
    • Lifestyle
  • About
    • Location
    • Contact
    • Newsletter

Results for Minor Planet Names in Google News, Refreshed Daily

4/1/2022

0 Comments

 
Early narrative explaining results as of May 13, 2022 (presentation for OPA Research):
The slide set:
Whiteboard explainer video:
Download the Powerpoint slide set which includes the video:
minor_planets_slideshow_2_.pptx
File Size: 42989 kb
File Type: pptx
Download File

The below is automated daily data cultivation with automated daily aggregate analysis in Wolfram Mathematica:

Daily Data [click to download csv file]

To download or use a copy of the code immediately above, click on the three lines in the bottom left and then choose "make your own copy" or "download". There is a free time-limited version of Mathematica that you can use with the download, or making your own copy will open up an online version of the software that you can use for free.
Finally, use the below to cultivate the daily asteroid namesake article counts:
names_to_search_fiverr_a.csv
File Size: 12 kb
File Type: csv
Download File

Python code for cultivation of daily data

import requests
from bs4 import BeautifulSoup
import pandas as pd
from datetime import date
from datetime import timedelta
#import numpy as np


#dataset containing 1200 names
df = pd.read_csv('names to search Fiverr A.csv')

#creating a list of all 1200 names
all_names = df['NAME'].values
#input_date = '2022-02-16'

input_date0 = date.today()-timedelta(days =1)#gives yesterday date
input_date = input_date0.isoformat()
#print(input_date)


#input_date = input('Enter the date in format yyyy-mm-dd example 2022-02-03:  ')

#Generating Urls from given list of names
def get_url(name):
    url_template = 'https://news.google.com/search?q={}'
    url = url_template.format(name)
    return url



#Scraping news title and date
def get_news(article,name):
    #title = article.h3.text
    title_date = article.div.div.time.get('datetime').split('T')[0]
#    print(title_date)
    if title_date == input_date:
        all_data = (title_date,name)
    return all_data


#Main function to run all code

main_list = []
def Main_task():
    for news_name in all_names:
        records = []
        count = 0
        url = get_url(news_name)
        response = requests.get(url)
        soup = BeautifulSoup(response.text,'html.parser')
        articles = soup.find_all('article','redacted')

        for article in articles:
            try:
                all_data = get_news(article,news_name)
                records.append(all_data)

            except:
                continue
        count = len(records)
#        print("---")
        main_list.append((news_name,count))

Main_task()
mynamedata = pd.DataFrame(main_list,columns= ['NAMES',input_date])
mynamedata.to_csv(input_date+'.csv')
0 Comments

Your comment will be posted after it is approved.


Leave a Reply.

    ARTICLES

    Author

    Renay Oshop - teacher, searcher, researcher, immerser, rejoicer, enjoying the interstices between Twitter, Facebook, and journals.

    Categories

    All
    Astrology
    Ayurveda
    Cooking
    Math
    Miscellaneous
    Research
    Sanskrit
    Yoga

    RSS Feed

    Archives

    January 2023
    December 2022
    November 2022
    April 2022
    March 2022
    October 2021
    September 2021
    February 2021
    January 2021
    December 2020
    November 2020
    October 2020
    September 2020
    July 2020
    June 2020
    April 2020
    March 2020
    February 2020
    January 2020
    October 2019
    September 2019
    February 2019
    January 2019
    October 2018
    February 2018
    January 2018
    November 2017
    October 2017
    February 2017
    January 2017
    June 2016
    February 2016
    December 2015
    November 2015
    October 2015
    September 2015
    August 2015
    July 2015
    June 2015
    March 2015
    April 2014
    February 2014
    January 2014
    January 2013
    December 2012
    October 2012
    May 2012
    April 2012
    February 2012
    January 2012
    November 2011
    July 2011
    April 2011
    December 2010
    November 2010
    October 2010
    September 2010
    August 2010
    June 2010
    January 2010
    October 2009
    July 2009
    May 2009
    February 2009
    January 2009
    November 2008
    October 2008
    September 2008
    August 2008
    July 2008
    June 2008
    May 2008
    April 2008
    June 2002

© 2008–2022  Renay Oshop  AyurAstro®
  • Home
  • Astrology Readings
    • Bookings
    • Vintage Reviews
    • World Renown
  • Resources
    • Media >
      • Articles
    • Calculators >
      • Astrology Centric >
        • Any Asteroid
        • Calendar Convert
        • Find Location DMS
        • Katapayadi Calculator
        • Real-time Gold & Silver Prices
        • Simple Star Calculator
        • Varsha Phala and Tithi Pravesh Location Finder
        • Earthquake Predictor
      • AI Centric >
        • Ask Charak
        • Handwriting Analysis
        • History Predictor
        • Personality Trait Predictor
        • TruthBot
    • Research >
      • Bibliography
      • Coding
      • NASA Research Tool
      • Degrees Spreadsheet
    • Privacy Policy
  • Store
    • Astrology
    • Jewelry
    • Lifestyle
  • About
    • Location
    • Contact
    • Newsletter