Posts

Showing posts from October, 2018

Use Python 3 to Get All Japan Chartered CMA Member's Name (証券アナリス ト)

英語:Use Python 3(+bs4) to Get All Chartered CMA Member's Name (日本証券アナリスト) in Japan 日本語:Python 3 を利用して、日本証券アナリスト会員の名簿を抽出します。 Key Words : Python 3, BeautifulSoup, 日本証券アナリスト, 名簿, Japan Security Analyst Member ------------------------------------------------------------------------ import requests f = open("/home/***/workspace/Python/Result.txt","w") url_b = ['a','i','u','e','o', 'ka','ki','ku','ke','ko', 'sa','si','su','se','so', 'ta','ti','tu','te','to', 'na','ni','nu','ne','no', 'ha','hi','hu','he','ho', 'ma','mi','mu','me','mo', 'ya','yu','yo', 'ra','ri','ro', &

Install Python3 Bs4

ImportError: No module named 'bs4' sudo apt-get install python3-bs4 --------------------------------------------- Use Python's pip: pip install bs4 if there is a proxy(.pac) Download the .pac file, find what the proxy is. and use the --proxy as follow: pip install bs4 --proxy http://user:password@proxyurl:proxyport