Scrapes the Sun Life of Canada Philippines web site for historical prices of their investment funds and then saves them as CSV files.

Related tags

Web Crawlingpython
Overview

slocpi-scraper

Sun Life of Canada Philippines Inc Investment Funds Scraper

Install dependencies

pip install -r requirements.txt

Usage

General format:

./api_client.py 
    
    
      (end_date)

    
   

The fund codes are listed in the next section.

The dates should use the YYYY-MM-DD format.

End dates are optional and default to today if not explicitly specified.

To get historical data for their Peso Balanced Fund from Jan 1, 2021 to Feb 14, 2021:

./api_client.py SLPBA 2021-01-01 2021-02-14

To get historical data for all of their VULs from Jan 1, 2021 to Feb 14, 2021:

./api_client.py VUL 2021-01-01 2021-02-14

To get historical data for all of their mutual funds from Jan 1, 2021 to Feb 14, 2021:

./api_client.py MF 2021-01-01 2021-02-14

To get historical data for all of their funds from Jan 1, 2021 to Feb 14, 2021:

./api_client.py ALL 2021-01-01 2021-02-14

List of VULs and their codes

  • SLPBA: Sun Life Phils - Peso Balanced Fund
  • SLPBF: Sun Life Phils - Peso Bond Fund
  • SLPCP: Sun Life Phils - Captains Fund
  • SLPDF: Dynamic Fund
  • SLPEF: Sun Life Phils - Peso Equity Fund
  • SLPGF: Sun Life Phils - Peso Growth Fund
  • SLPGP: Sun Life Phils - Growth Plus Fund
  • SLPIF: Sun Life Phils - Peso Income Fund
  • SLPIN: Sun Life Phils - Index Fund
  • SLPMM: Sun Life Phils - Money Market Fund
  • SLPOF: Sun Life Phils - Peso Opportunity Fund
  • SLPOT: Sun Life Phils - Opportunity Tracker Fund
  • SLPP1: Sun Peso Maximizer - Fund
  • SLPP2: Sun Peso Maximizer - Primo 2 Fund
  • TDF20: Sun Life Phils - Peso MyFuture 2020
  • TDF25: Sun Life Phils - Peso MyFuture 2025
  • TDF30: Sun Life Phils - Peso MyFuture 2030
  • TDF35: Sun Life Phils - Peso MyFuture 2035
  • TDF40: Sun Life Phils - Peso MyFuture 2040
  • SLUBF: Sun Life Phils - Dollar Bond Fund
  • SLUD7: Sun Life Phils - Sun Dollar Maximizer - WT
  • SLUD8: Sun Life Phils - Sun Dollar Maximizer - PriMO
  • SLUD9: Sun Life Phils - Sun Dollar Maximizer - PriMO 2
  • SLUGF: Sun Life Phils - Global Growth Fund
  • SLUIF: Sun Life Phils - Global Income Fund
  • SLUOF: Sun Life Phils - Global Opportunity Fund
  • SLUMM: Sun Life Phils - Dollar Money Market Fund

List of mutual funds and their codes

  • CF0001: Sun Life Prosperity Bond Fund
  • CF0002: Sun Life Prosperity Balanced Fund
  • CF0003: Sun Life Prosperity Philippine Equity Fund
  • CF0004: Sun Life Prosperity Dollar Advantage Fund
  • CF0005: Sun Life Prosperity Money Market Fund
  • CF0006: Sun Life Prosperity Dollar Abundance Fund
  • CF0007: Sun Life Prosperity Government Securities (GS) Fund
  • CF0008: Sun Life Prosperity Dynamic Fund
  • CF0009: Sun Life Prosperity Philippine Stock Index Fund
  • CF0010: Sun Life Prosperity Dollar Wellspring Fund
  • CF0011: Sun Life Prosperity World Voyager Fund
  • CF0012: Sun Life Prosperity Dollar Starter Fund
  • CF0013: Sun Life Prosperity Achiever Fund 2028
  • CF0014: Sun Life Prosperity Achiever Fund 2038
  • CF0015: Sun Life Prosperity Achiever Fund 2048
  • CF0016: Sun Life Prosperity World Equity Index Feeder Fund
Owner
Daryl Yu
Daryl Yu
A simple code to fetch comments below an Instagram post and save them to a csv file

fetch_comments A simple code to fetch comments below an Instagram post and save them to a csv file usage First you have to enter your username and pas

2 Jul 14, 2022
Python script to check if there is any differences in responses of an application when the request comes from a search engine's crawler.

crawlersuseragents This Python script can be used to check if there is any differences in responses of an application when the request comes from a se

Podalirius 13 Dec 27, 2022
This is my CS 20 final assesment.

eeeeeSpider This is my CS 20 final assesment. How to use: Open program Run to your hearts content! There are no external dependancies that you will ha

1 Jan 17, 2022
Video Games Web Scraper is a project that crawls websites and APIs and extracts video game related data from their pages.

Video Games Web Scraper Video Games Web Scraper is a project that crawls websites and APIs and extracts video game related data from their pages. This

Albert Marrero 1 Jan 12, 2022
A multithreaded tool for searching and downloading images from popular search engines. It is straightforward to set up and run!

🕳️ CygnusX1 Code by Trong-Dat Ngo. Overviews 🕳️ CygnusX1 is a multithreaded tool 🛠️ , used to search and download images from popular search engine

DatNgo 32 Dec 31, 2022
热搜榜-python爬虫+正则re+beautifulsoup+xpath

仓库简介 微博热搜榜, 参数wb 百度热搜榜, 参数bd 360热点榜, 参数360 csdn热榜接口, 下方查看 其他热搜待加入 如何使用? 注册vercel fork到你的仓库, 右上角 点击这里完成部署(一键部署) 请求参数 vercel配置好的地址+api?tit=+参数(仓库简介有参数信息

Harry 3 Jul 08, 2022
A simple proxy scraper that utilizes the requests module in python.

Proxy Scraper A simple proxy scraper that utilizes the requests module in python. Usage Depending on your python installation your commands may vary.

3 Sep 08, 2021
Parse feeds in Python

feedparser - Parse Atom and RSS feeds in Python. Copyright 2010-2020 Kurt McKee Kurt McKee 1.5k Dec 30, 2022

A simple flask application to scrape gogoanime website.

gogoanime-api-flask A simple flask application to scrape gogoanime website. Used for demo and learning purposes only. How to use the API The base api

1 Oct 29, 2021
The core packages of security analyzer web crawler

Security Analyzer 🐍 A large scale web crawler (considered also as vulnerability scanner tool) to take an overview about security of Moroccan sites Cu

Security Analyzer 10 Jul 03, 2022
Subscrape - A Python scraper for substrate chains

subscrape A Python scraper for substrate chains that uses Subscan. Usage copy co

ChaosDAO 14 Dec 15, 2022
A spider for Universal Online Judge(UOJ) system, converting problem pages to PDFs.

Universal Online Judge Spider Introduction This is a spider for Universal Online Judge (UOJ) system (https://uoj.ac/). It also works for all other Onl

TriNitroTofu 1 Dec 07, 2021
A social networking service scraper in Python

snscrape snscrape is a scraper for social networking services (SNS). It scrapes things like user profiles, hashtags, or searches and returns the disco

2.4k Jan 01, 2023
A pure-python HTML screen-scraping library

Scrapely Scrapely is a library for extracting structured data from HTML pages. Given some example web pages and the data to be extracted, scrapely con

Scrapy project 1.8k Dec 31, 2022
腾讯课堂,模拟登陆,获取课程信息,视频下载,视频解密。

腾讯课堂脚本 要学一些东西,但腾讯课堂不支持自定义变速,播放时有水印,且有些老师的课一遍不够看,于是这个脚本诞生了。 时间比较紧张,只会不定时修复重大bug。多线程下载之类的功能更新短期内不会有,如果你想一起完善这个脚本,欢迎pr 2020.5.22测试可用 使用方法 很简单,三部完成 下载代码,

163 Dec 30, 2022
Web scraping library and command-line tool for text discovery and extraction (main content, metadata, comments)

trafilatura: Web scraping tool for text discovery and retrieval Description Trafilatura is a Python package and command-line tool which seamlessly dow

Adrien Barbaresi 704 Jan 06, 2023
Scrape all the media from an OnlyFans account - Updated regularly

Scrape all the media from an OnlyFans account - Updated regularly

CRIMINAL 3.2k Dec 29, 2022
Amazon web scraping using Scrapy Framework

Amazon-web-scraping-using-Scrapy-Framework Scrapy Scrapy is an application framework for crawling web sites and extracting structured data which can b

Sejal Rajput 1 Jan 25, 2022
Simple proxy scraper made by using ProxyScrape's api.

What is Moon? Moon is a lightweight and fast proxy scraper made by using ProxyScrape's api. What can i do with this? You can use proxies for varietys

1 Jul 04, 2022
Transistor, a Python web scraping framework for intelligent use cases.

Web data collection and storage for intelligent use cases. transistor About The web is full of data. Transistor is a web scraping framework for collec

BOM Quote Manufacturing 212 Nov 05, 2022