Skip to content

Instantly share code, notes, and snippets.

View HarshalBhoir's full-sized avatar
💭
I may be slow to respond.

Harshal Bhoir HarshalBhoir

💭
I may be slow to respond.
View GitHub Profile
@HarshalBhoir
HarshalBhoir / xml_rpc.py
Created May 28, 2020 06:58 — forked from ilyasProgrammer/xml_rpc.py
Odoo xml rpc example
import xmlrpclib
from datetime import datetime
# url = "http://localhost:8069"
# db = "RAJO"
# username = 'a'
# password = 'a'
url = "https://erp.atlantis-kw.com"
db = "RAJO_TEST"
username = 'api'
@HarshalBhoir
HarshalBhoir / WhoHasLatestNav.py
Created November 26, 2018 11:19 — forked from arulrajnet/WhoHasLatestNav.py
Have curiosity to know how www.valueresearchonline.com updated their NAV value of a fund once the Market closed on 4:10PM every day. So I wrote a script to check the NAV value in Value Research, AMFI and Morningstar for a particular fund. Here that script...
# -*- coding: utf-8 -*-
__author__ = 'arul'
import requests, sys
from lxml import html
from bs4 import BeautifulSoup
vrs_value = "NA"
amfi_value = "NA"
@HarshalBhoir
HarshalBhoir / stockmarketindia.py
Created November 26, 2018 11:19 — forked from arulrajnet/stockmarketindia.py
Get the latest Index from BSE and NSE stock market. Python script using google finance open API http://finance.google.com/finance/info?client=ig&q=INDEXBOM:SENSEX
#!/usr/bin/env python
# -*- coding: utf-8 -*-
from collections import namedtuple
import json
try:
from urllib.request import Request, urlopen
except ImportError: # python 2
from urllib2 import Request, urlopen
@HarshalBhoir
HarshalBhoir / GetStockInfo.py
Created November 26, 2018 11:19 — forked from arulrajnet/GetStockInfo.py
Python script to get the stock current and history information from command line. Google Finance Data used. It will accept stock code and interval range as list.
#!/usr/bin/env python
# -*- coding: utf-8 -*-
from collections import namedtuple
from datetime import timedelta
import json
import datetime
import re
import sys
import getopt