Daily Article Reading 

Python

🚴 I have created a set of simple Python codes to help feed my daily readings from some key accounting journals:

This is helpful when you have some general topic on head and want to check out what studies have been recently published. 😄

For Mac OS (with keyword searching)

import webbrowser


# Search term - change this to your desired search query

search_term = "KEYWORDS"  # Replace 'KEYWORDS' with any search term, e.g., 'accounting+standards'


# Specify the path to your Google Chrome executable using a raw string

chrome_path = '/Applications/Google Chrome.app/Contents/MacOS/Google Chrome' # Replace the chrome path with the one installed in your macbook


# URLs formatted with the search term

urls = [

   f'https://www.tandfonline.com/action/doSearch?AllField={search_term}&SeriesKey=rear20',

   f'https://www.sciencedirect.com/search?qs={search_term}&pub=The%20British%20Accounting%20Review',

   f'https://publications.aaahq.org/accounting-review/search-results?page=1&q={search_term}',

   f'https://link.springer.com/search?new-search=true&facet-journal-id=11142&source=new&content-type=article&dateFrom=&dateTo=&sortBy=relevance&query={search_term}',

   f'https://onlinelibrary.wiley.com/action/doSearch?AllField={search_term}&SeriesKey=1475679x',

   f'https://www.sciencedirect.com/search?qs={search_term}&pub=Accounting%2C%20Organizations%20and%20Society',

   f'https://www.sciencedirect.com/search?qs={search_term}&pub=Journal%20of%20Accounting%20and%20Economics'

]


# Register the Chrome browser with the specified path

webbrowser.register('chrome', None, webbrowser.BackgroundBrowser(chrome_path))


# Open each URL in a new tab of the Google Chrome browser

for url in urls:

   webbrowser.get('chrome').open_new_tab(url)

For Windows OS (with keyword searching)

import webbrowser


# Search term - change this to your desired search query

search_term = "KEYWORDS"  # Replace 'KEYWORDS' with any search term, e.g., 'accounting+standards'


# Specify the path to your Google Chrome executable using a raw string

chrome_path = r'C:\Program Files\Google\Chrome\Application\chrome.exe' # Replace the chrome path with the one installed in your windows PC


# URLs formatted with the search term

urls = [

   f'https://www.tandfonline.com/action/doSearch?AllField={search_term}&SeriesKey=rear20',

   f'https://www.sciencedirect.com/search?qs={search_term}&pub=The%20British%20Accounting%20Review',

   f'https://publications.aaahq.org/accounting-review/search-results?page=1&q={search_term}',

   f'https://link.springer.com/search?new-search=true&facet-journal-id=11142&source=new&content-type=article&dateFrom=&dateTo=&sortBy=relevance&query={search_term}',

   f'https://onlinelibrary.wiley.com/action/doSearch?AllField={search_term}&SeriesKey=1475679x',

   f'https://www.sciencedirect.com/search?qs={search_term}&pub=Accounting%2C%20Organizations%20and%20Society',

   f'https://www.sciencedirect.com/search?qs={search_term}&pub=Journal%20of%20Accounting%20and%20Economics'

]


# Register the Chrome browser with the specified path

webbrowser.register('chrome', None, webbrowser.BackgroundBrowser(chrome_path))


# Open each URL in a new tab of the Google Chrome browser

for url in urls:

   webbrowser.get('chrome').open_new_tab(url)