In [1]:
from IPython.display import HTML
import requests
HTML(requests.get("https://git.io/fh5WI").text)
Out[1]:

Python and Jupyter for Programmers

Part 2: Web Scrapping with Requests and BeautifulSoup

go top

1. Project

Here is a page with a directory of graduate students at the UB Math Department:

http://www.buffalo.edu/cas/math/people/grad-directory.html
Objective: Retrieve names and email addresses of all students.
In [ ]:
import IPython
url = "http://www.buffalo.edu/cas/math/people/grad-directory.html"
IPython.display.IFrame(url, width = 1000, height = 600)
go top

2. Requests


  • Requests is a Python library for interacting with web pages.
  • A short introduction to requests is available here.
In [1]:
import requests
In [2]:
grad_page = requests.get("http://www.buffalo.edu/cas/math/people/grad-directory.html")

Header information:

In [3]:
print(grad_page.headers)
{'Date': 'Mon, 04 Mar 2019 22:38:04 GMT', 'Server': 'Apache/2.4.6 () Communique/4.2.3 OpenSSL/1.0.2k-fips', 'Last-Modified': 'Mon, 04 Mar 2019 22:38:04 GMT', 'ETag': 'W/"97c1-5834c68e9f13b-gzip"', 'Accept-Ranges': 'bytes', 'Vary': 'Accept-Encoding,User-Agent', 'Content-Encoding': 'gzip', 'Cache-Control': 'max-age=10', 'Expires': 'Mon, 04 Mar 2019 22:38:14 GMT', 'Content-Length': '8291', 'Keep-Alive': 'timeout=5, max=100', 'Connection': 'Keep-Alive', 'Content-Type': 'text/html; charset=UTF-8'}
In [20]:
grad_page.headers['Date']
Out[20]:
'Sat, 23 Feb 2019 01:27:04 GMT'

Text of the webpage:

In [3]:
grads = grad_page.text
grads
Out[3]:
'<!DOCTYPE HTML><html lang="en" class="ubcms-63"><!-- cmspub04 0404-214918 --><head><meta http-equiv="X-UA-Compatible" content="IE=edge"/><meta http-equiv="content-type" content="text/html; charset=UTF-8"/><meta id="meta-viewport" name="viewport" content="width=device-width,initial-scale=1"/><script>if (screen.width > 720 && screen.width < 960) document.getElementById(\'meta-viewport\').setAttribute(\'content\',\'width=960\');</script><script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({\'gtm.start\':new Date().getTime(),event:\'gtm.js\'});var f=d.getElementsByTagName(s)[0],j=d.createElement(s),dl=l!=\'dataLayer\'?\'&l=\'+l:\'\';j.async=true;j.src=\'https://www.googletagmanager.com/gtm.js?id=\'+i+dl;f.parentNode.insertBefore(j,f);})(window,document,\'script\',\'dataLayer\',\'GTM-T5KRRKT\');</script><title>Graduate Students - Department of Mathematics - University at Buffalo</title><link rel="canonical" href="http://www.buffalo.edu/cas/math/people/grad-directory.html"/><meta name="date" content="2019-02-18"/><meta name="og:title" content="Graduate Student Directory"/><meta name="og:description" content=" A | B | C | D | E | F | G | H | I | J | K | L | M | N | O | P | Q | R | S | T | U | V | W | X | Y | Z "/><meta name="og:image" content="http://www.buffalo.edu/cas/math/people/grad-directory/_jcr_content/par/image.img.512.auto.jpg/1460655962154.jpg"/><meta name="twitter:card" content="summary"/><link rel="stylesheet" href="//www.buffalo.edu/v-0b46242c87648f90b61a442509e6bc30/etc/designs/ubcms/clientlibs.min.0b46242c87648f90b61a442509e6bc30.css" type="text/css"><link type="text/css" rel="stylesheet" href="//www.buffalo.edu/v-9cc4b89851550cf5e105d25db85ba3e9/etc/designs/cas/math/css/main.css"/><script type="text/javascript" src="//www.buffalo.edu/v-a5cfe42345b997301b175d241d0eba88/etc/designs/ubcms/clientlibs.min.a5cfe42345b997301b175d241d0eba88.js"></script><style type="text/css">body.page #page, body.page .page-inner {background-color:#FFFFFF}</style><script>(function(i,s,o,g,r,a,m){i[\'GoogleAnalyticsObject\']=r;i[r]=i[r]||function(){(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)})(window,document,\'script\',\'//www.google-analytics.com/analytics.js\',\'ga\');ga(\'create\', \'UA-67291618-1\', \'auto\');ga(\'send\', \'pageview\');</script><script type="text/javascript">\n        /*<![CDATA[*/\n        (function() {\n            var sz = document.createElement(\'script\'); sz.type = \'text/javascript\'; sz.async = true;\n            sz.src = \'//siteimproveanalytics.com/js/siteanalyze_75159.js\';\n            var s = document.getElementsByTagName(\'script\')[0]; s.parentNode.insertBefore(sz, s);\n        })();\n        /*]]>*/\n    </script></head><body class="contentpage page"><noscript><iframe src="https://www.googletagmanager.com/ns.html?id=GTM-T5KRRKT"height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript><nav aria-label="skip to content"><a href="#skip-to-content" id="skip-to-content-link">Skip to Content</a></nav><div id="page"><div class="page-inner"><div class="page-inner-1"><div class="page-inner-2"><div class="page-inner-2a"></div><div class="page-inner-3"><header><div class="innerheader inheritedreference reference parbase"><div class="headerconfigpage contentpage page"><div class="par parsys"><div class="alertbanner reference parbase section"><div class="capdatadisplay"></div><script>jQuery(\'.cap-message\').detach().insertBefore(\'#page\').wrap(\'<section aria-label="UB Alert">\');</script></div><div class="header section"><style>\n            .innerheader { padding-top: 158px }\n            .header { height: 158px }\n            .header .main { height: 134px }\n        </style><div><div class="top theme-blue" data-set="header-links"><ul class="school-links"><li><a href="http://arts-sciences.buffalo.edu/">College of Arts and Sciences</a></li></ul><ul class="pervasive-links"><li><a href="//www.buffalo.edu">UB Home</a></li><li><a href="//www.buffalo.edu/maps">Maps</a></li><li><a href="//www.buffalo.edu/directory/">UB Directory</a></li></ul></div><div class="main theme-blue brand-extension lines-1"><div class="lockup"><a href="//www.buffalo.edu"> <i class="icon icon-ub-logo"></i> <span class="logo"> <img class="black" src="//www.buffalo.edu/v-be9166b6b4a1ea7e5771e2eba1d410cf/etc/designs/ubcms/images/header/ub-logo-black.png" alt="University at Buffalo" width="181" height="20"/> </span> </a><div class="mobile-links" data-set="header-links"></div><div class="title"><a href="/cas/math.html">Department of Mathematics</a></div></div><div class="social" data-set="headersocial"></div><div class="tasknav" data-set="tasknav"><div class="buttoncomponent sidebyside orange"><a href="http://www.buffalo.edu/ub_admissions/apply-now.html" target="_blank">Apply to UB</a></div><div class="buttoncomponent sidebyside blue"><a href="http://www.buffalo.edu/cas/math/about-us/contact-us.html">Contact Us</a></div><div class="buttoncomponent sidebyside green"><a href="https://ubfoundation.buffalo.edu/giving/index.php?action=use-parameters&amp;gift_allocation=9351124026" target="_blank">Support UB Math</a></div></div></div></div></div><div class="mobilemenu section"><!--noindex--><nav aria-label="mobile navigation menu"><ul><li class="mobileheader-button-menu" style="display: none"><a href="#">Menu</a></li><li class="mobileheader-button-search" style="display: none"><a href="#">Search</a></li></ul></nav><!--endnoindex--><div id="mobile-search" class="menu"><div id="mobile-search-inner" class="menu-inner" data-set="mobile-search"></div></div><div id="mobile-menu" class="menu"><div class="menu-inner"><div id="mobile-menu-inner"><div class="loading"><!--noindex-->Loading menu...<!--endnoindex--></div></div><div class="tasknav" data-set="tasknav"></div><div class="headersocial" data-set="headersocial"></div></div></div><script>\n    jQuery(\'.mobileheader-button-menu\').removeAttr(\'style\');\n    jQuery(document).ready(function() {\n        if ($(\'.topnav .search .form\').length > 0) {\n            $(\'.mobileheader-button-search\').removeAttr(\'style\');\n        }\n    });\n    UBCMS.rwd.mobileMenu.load(\'\\/content\\/cas\\/math\\/jcr:content.nav.html\', \'http:\\/\\/www.buffalo.edu\\/cas\\/math\\/people\\/grad-directory.html\');\n</script></div><div class="topnav section"><nav class="topnav-inner" aria-label="site navigation"><div class="main"><ul class="menu"><li class="first theme-secondary theme-putnam-gray"><a id="ubcms-gen-1272252722" aria-haspopup="true" href="/cas/math/about-us.html"><span class="container">About</span></a><div class="topnav-submenu-container" aria-labelledby="ubcms-gen-1272252722"><ul class="submenu clearfix"><li class="first"><a aria-label="About:Why Choose Us?" href="/cas/math/about-us/why-choose.html">Why Choose Us?</a></li><li><a aria-label="About:Our Mission" href="/cas/math/about-us/our-mission.html">Our Mission</a></li><li><a aria-label="About:Our Alumni, Students, and Faculty" href="/cas/math/about-us/our-alumni.html">Our Alumni, Students, and Faculty</a><div class="topnav-submenu-children-container list"><ul class="submenu-children clearfix link-list"><li class="first"><a aria-label="Our Alumni, Students, and Faculty:Our Alumni" href="/cas/math/about-us/our-alumni/our-alumni.html">Our Alumni</a></li><li><a aria-label="Our Alumni, Students, and Faculty:Our Students" href="/cas/math/about-us/our-alumni/our-students.html">Our Students</a></li><li class="last"><a aria-label="Our Alumni, Students, and Faculty:Our Faculty" href="/cas/math/about-us/our-alumni/our-faculty.html">Our Faculty</a></li></ul></div></li><li><a aria-label="About:Memberships" href="/cas/math/about-us/memberships.html">Memberships</a><div class="topnav-submenu-children-container list"><ul class="submenu-children clearfix link-list"><li class="first"><a aria-label="Memberships:American Mathematical Society" href="/cas/math/about-us/memberships/AMS.html">American Mathematical Society</a></li><li><a aria-label="Memberships:Association for Women in Mathematics" href="/cas/math/about-us/memberships/AWM.html">Association for Women in Mathematics</a></li><li class="last"><a aria-label="Memberships:Mathematical Sciences Research Institute" href="/cas/math/about-us/memberships/MSRI.html">Mathematical Sciences Research Institute</a></li></ul></div></li><li><a aria-label="About:Community Outreach" href="/cas/math/about-us/community-outreach.html">Community Outreach</a></li><li><a aria-label="About:About the University" href="/cas/math/about-us/about-the-university.html">About the University</a></li><li><a aria-label="About:About Buffalo-Niagara" href="/cas/math/about-us/the-buffalo-niagara-region.html">About Buffalo-Niagara</a></li><li class="last"><a aria-label="About:Contact Us" href="/cas/math/about-us/contact-us.html">Contact Us</a></li></ul><div class="relatedLinks relatedlinksreference reference parbase"><div class="nav-related-links"><!--noindex--><div class="subnav-title">Related Links</div><!--endnoindex--><div class="relatedlinkspage unstructuredpage page"><div class="par parsys"><div class="relatedlinks list parbase section"><div id="ubcms-gen-1272252741"><ul class="link-list" data-columnize="1"><li><span class="teaser teaser-inline"> <a href="/cas/math/people/faculty.html"> <span class="teaser-inner"> <!--noindex--> <span class="teaser-date">9/7/18</span> <!--endnoindex--> <span class="teaser-title">Faculty</span> </span> </a> </span></li><li><span class="teaser teaser-inline"> <a href="/cas/math/people/staff_directory.html"> <span class="teaser-inner"> <!--noindex--> <span class="teaser-date">6/14/17</span> <!--endnoindex--> <span class="teaser-title">Staff</span> </span> </a> </span></li><li><span class="teaser teaser-inline"> <a href="/cas/math/people/emeriti.html"> <span class="teaser-inner"> <!--noindex--> <span class="teaser-date">3/3/18</span> <!--endnoindex--> <span class="teaser-title">Emeriti Faculty</span> </span> </a> </span></li><li><span class="teaser teaser-inline"> <a href="/cas/math/people/instructors.html"> <span class="teaser-inner"> <!--noindex--> <span class="teaser-date">11/21/17</span> <!--endnoindex--> <span class="teaser-title">Instructors</span> </span> </a> </span></li><li><span class="teaser teaser-inline"> <a href="/cas/math/people/grad-directory.html"> <span class="teaser-inner"> <!--noindex--> <span class="teaser-date">2/18/19</span> <!--endnoindex--> <span class="teaser-title">Graduate Student Directory</span> </span> </a> </span></li><li><span class="teaser teaser-inline"> <a href="/cas/math/alumni-friends1.html"> <span class="teaser-inner"> <!--noindex--> <span class="teaser-date">3/26/18</span> <!--endnoindex--> <span class="teaser-title">Alumni</span> </span> </a> </span></li></ul></div><div class="clearfix"></div></div></div></div></div></div></div></li><li class="theme-secondary theme-putnam-gray active-trail"><a id="ubcms-gen-1272252755" aria-haspopup="true" href="/cas/math/people.html"><span class="container">People</span></a><div class="topnav-submenu-container" aria-labelledby="ubcms-gen-1272252755"><ul class="submenu clearfix"><li class="first"><a aria-label="People:Faculty" href="/cas/math/people/faculty.html">Faculty</a></li><li><a aria-label="People:Staff" href="/cas/math/people/staff_directory.html">Staff</a></li><li><a aria-label="People:Emeriti Faculty" href="/cas/math/people/emeriti.html">Emeriti Faculty</a></li><li><a aria-label="People:Instructors" href="/cas/math/people/instructors.html">Instructors</a></li><li class="active-trail"><a class="active" aria-label="People:Graduate Students" href="/cas/math/people/grad-directory.html">Graduate Students</a></li><li class="last"><a aria-label="People:Alumni" href="/cas/math/alumni-friends1.html">Alumni</a></li></ul><div class="relatedLinks relatedlinksreference reference parbase"></div></div></li><li class="theme-secondary theme-putnam-gray"><a id="ubcms-gen-1272252765" aria-haspopup="true" href="/cas/math/research.html"><span class="container">Research</span></a><div class="topnav-submenu-container" aria-labelledby="ubcms-gen-1272252765"><ul class="submenu clearfix"><li class="first"><a aria-label="Research:Algebra" href="/cas/math/research/algebra.html">Algebra</a></li><li><a aria-label="Research:Analysis" href="/cas/math/research/analysis.html">Analysis</a></li><li><a aria-label="Research:Applied Mathematics" href="/cas/math/research/applied-mathematics.html">Applied Mathematics</a></li><li class="last"><a aria-label="Research:Geometry and Topology " href="/cas/math/research/geometry-topology.html">Geometry and Topology </a></li></ul><div class="relatedLinks relatedlinksreference reference parbase"></div></div></li><li class="theme-secondary theme-putnam-gray"><a id="ubcms-gen-1272252772" aria-haspopup="true" href="/cas/math/ug.html"><span class="container">Undergraduate</span></a><div class="topnav-submenu-container" aria-labelledby="ubcms-gen-1272252772"><ul class="submenu clearfix"><li class="first"><a aria-label="Undergraduate:Undergraduate Programs" href="/cas/math/ug/undergraduate-programs.html">Undergraduate Programs</a></li><li><a aria-label="Undergraduate:Undergraduate Research" href="/cas/math/ug/undergraduate-research.html">Undergraduate Research</a></li><li><a aria-label="Undergraduate:Honors, Awards, and Scholarships" href="/cas/math/ug/honors--awards--and-scholarships.html">Honors, Awards, and Scholarships</a></li><li><a aria-label="Undergraduate:Undergraduate Courses" href="/cas/math/ug/ug-courses.html">Undergraduate Courses</a><div class="topnav-submenu-children-container list"><ul class="submenu-children clearfix link-list"><li class="first last"><a aria-label="Undergraduate Courses:Sample Syllabi" href="/cas/math/ug/ug-courses/syllabi.html">Sample Syllabi</a></li></ul></div></li><li><a aria-label="Undergraduate:Mathematics Help" href="/cas/math/ug/math-help.html">Mathematics Help</a><div class="topnav-submenu-children-container list"><ul class="submenu-children clearfix link-list"><li class="first last"><a aria-label="Mathematics Help:ALEKS Assessment for MTH 121, 131, 141" href="/cas/math/ug/math-help/aleks.html">ALEKS Assessment for MTH 121, 131, 141</a></li></ul></div></li><li class="last"><a aria-label="Undergraduate:Association for Women in Mathematics" href="/cas/math/about-us/memberships/AWM.html">Association for Women in Mathematics</a></li></ul><div class="relatedLinks relatedlinksreference reference parbase"></div></div></li><li class="theme-secondary theme-putnam-gray"><a id="ubcms-gen-1272252784" aria-haspopup="true" href="/cas/math/grad.html"><span class="container">Graduate</span></a><div class="topnav-submenu-container" aria-labelledby="ubcms-gen-1272252784"><ul class="submenu clearfix"><li class="first"><a aria-label="Graduate:Master\'s Program" href="/cas/math/grad/master-program.html">Master\'s Program</a><div class="topnav-submenu-children-container list"><ul class="submenu-children clearfix link-list"><li class="first last"><a aria-label="Master\'s Program:MA Focus in Applied and Interdisciplinary Mathematics" href="/cas/math/grad/master-program/focus.html">MA Focus in Applied and Interdisciplinary Mathematics</a></li></ul></div></li><li><a aria-label="Graduate:Doctoral Program (PhD)" href="/cas/math/grad/doctoral-program.html">Doctoral Program (PhD)</a></li><li><a aria-label="Graduate:Request Information" href="/cas/math/grad/request-information.html">Request Information</a></li><li><a aria-label="Graduate:Admissions" href="/cas/math/grad/grad-admissions.html">Admissions</a></li><li><a aria-label="Graduate:Courses" href="/cas/math/grad/grad-courses.html">Courses</a></li><li><a aria-label="Graduate:Graduate Research" href="/cas/math/grad/grad-research.html">Graduate Research</a></li><li><a aria-label="Graduate:Fellowships, Scholarships, Awards" href="/cas/math/grad/fellowships-awards.html">Fellowships, Scholarships, Awards</a></li><li><a aria-label="Graduate:Association for Women in Mathematics" href="/cas/math/about-us/memberships/AWM.html">Association for Women in Mathematics</a></li><li class="last"><a aria-label="Graduate:Graduate Student Directory" href="/cas/math/people/grad-directory.html">Graduate Student Directory</a></li></ul><div class="relatedLinks relatedlinksreference reference parbase"></div></div></li><li class="theme-secondary theme-putnam-gray"><a id="ubcms-gen-1272252799" aria-haspopup="true" href="/cas/math/courses.html"><span class="container">Courses</span></a></li><li class="last theme-secondary theme-putnam-gray"><a id="ubcms-gen-1272252801" aria-haspopup="true" href="/cas/math/news-events/news.html"><span class="container">News &amp; Events</span></a><div class="topnav-submenu-container" aria-labelledby="ubcms-gen-1272252801"><ul class="submenu clearfix"><li class="first"><a aria-label="News &amp; Events:News" href="/cas/math/news-events/news.html">News</a></li><li><a aria-label="News &amp; Events:Events Calendar" href="/cas/math/news-events/calendar.html">Events Calendar</a></li><li><a aria-label="News &amp; Events:Myhill Lecture Series" href="/cas/math/news-events/myhill.html">Myhill Lecture Series</a><div class="topnav-submenu-children-container list"><ul class="submenu-children clearfix link-list"><li class="first"><a aria-label="Myhill Lecture Series:Mark Newman, 2018" href="/cas/math/news-events/myhill/mark-newman.html">Mark Newman, 2018</a></li><li><a aria-label="Myhill Lecture Series:Guoliang Yu, 2017" href="/cas/math/news-events/myhill/guoliangyu.html">Guoliang Yu, 2017</a></li><li><a aria-label="Myhill Lecture Series:Gopal Prasad, 2016" href="/cas/math/news-events/myhill/gopal-prasad.html">Gopal Prasad, 2016</a></li><li><a aria-label="Myhill Lecture Series:Ciprian Manolescu, 2015" href="/cas/math/news-events/myhill/ciprian-manolescu.html">Ciprian Manolescu, 2015</a></li><li><a aria-label="Myhill Lecture Series:Percy A. Deift, 2014" href="/cas/math/news-events/myhill/percy-deift.html">Percy A. Deift, 2014</a></li><li class="last"><a aria-label="Myhill Lecture Series:Peter Sarnak, 2013" href="/cas/math/news-events/myhill/peter-sarnak.html">Peter Sarnak, 2013</a></li></ul></div></li><li><a aria-label="News &amp; Events:News &amp; Events Archive" href="/cas/math/news-events/archives.html">News &amp; Events Archive</a></li><li class="last"><a aria-label="News &amp; Events:Visiting UB" href="/cas/math/news-events/visiting.html">Visiting UB</a></li></ul><div class="relatedLinks relatedlinksreference reference parbase"></div></div></li></ul></div><div class="right"><div class="search"><!--noindex--><div role="search"><div class="label" onmouseenter="jQuery(this).parent().find(\'input[type=text]\').focus().select()">Search</div><div class="form" onmouseleave="jQuery(this).parent().find(\'input[type=text]\').blur()"><div data-set="mobile-search" class="form-content"><form method="GET" action="/cas/math/searchresults.html" onsubmit="return this.q.value != \'\'"> <label for="ubcms-gen-1272252823" class="ada-hidden">Search</label> <input id="ubcms-gen-1272252823" type="text" name="q" value="" placeholder="Search" autocomplete="off" onfocus="jQuery(this).parents(\'.form\').addClass(\'show-search\')" onblur="jQuery(this).parents(\'.form\').removeClass(\'show-search\')"/> <i class="icon icon-search"></i> <input type="submit" value="Search" onfocus="jQuery(this).parents(\'.form\').addClass(\'show-search\')" onblur="jQuery(this).parents(\'.form\').removeClass(\'show-search\')"/> </form></div></div></div><!--endnoindex--></div><div class="audiencenav list parbase"><div tabindex="0" class="audiencenav-wrapper"><div class="label">Info For</div><ul><li><a onfocus="jQuery(this).parents(\'.audiencenav-wrapper\').addClass(\'hover\')" onblur="jQuery(this).parents(\'.audiencenav-wrapper\').removeClass(\'hover\')" href="/cas/math/information-for-students.html"> Current Students </a></li><li><a onfocus="jQuery(this).parents(\'.audiencenav-wrapper\').addClass(\'hover\')" onblur="jQuery(this).parents(\'.audiencenav-wrapper\').removeClass(\'hover\')" href="/cas/math/ug/undergraduate-programs.html"> Future Undergraduate Students </a></li><li><a onfocus="jQuery(this).parents(\'.audiencenav-wrapper\').addClass(\'hover\')" onblur="jQuery(this).parents(\'.audiencenav-wrapper\').removeClass(\'hover\')" href="/cas/math/grad.html"> Future Graduate Students </a></li><li><a onfocus="jQuery(this).parents(\'.audiencenav-wrapper\').addClass(\'hover\')" onblur="jQuery(this).parents(\'.audiencenav-wrapper\').removeClass(\'hover\')" href="/cas/math/information-for-faculty-staff.html"> Faculty &amp; Staff </a></li><li><a onfocus="jQuery(this).parents(\'.audiencenav-wrapper\').addClass(\'hover\')" onblur="jQuery(this).parents(\'.audiencenav-wrapper\').removeClass(\'hover\')" href="/cas/math/alumni-friends1.html"> Alumni &amp; Friends </a></li></ul></div></div></div></nav><script>$(".topnav").accessibleDropDown();</script></div></div></div></div></header><div id="columns" class="two-column clearfix"><div class="columns-bg columns-bg-1"><div class="columns-bg columns-bg-2"><div class="columns-bg columns-bg-3"><div class="columns-bg columns-bg-4"><div id="left"><div class="leftnav"><nav class="inner" aria-label="section navigation"><div class="title"><a href="/cas/math/people.html"><span class="title">People</span></a></div><ul class="menu nav-level-1"><li class="first"><a aria-label="People:Faculty" href="/cas/math/people/faculty.html">Faculty</a></li><li><a aria-label="People:Staff" href="/cas/math/people/staff_directory.html">Staff</a></li><li><a aria-label="People:Emeriti Faculty" href="/cas/math/people/emeriti.html">Emeriti Faculty</a></li><li><a aria-label="People:Instructors" href="/cas/math/people/instructors.html">Instructors</a></li><li class="active-trail"><span><a class="active" aria-label="People:Graduate Students" href="/cas/math/people/grad-directory.html">Graduate Students</a></span></li><li class="last"><a aria-label="People:Alumni" href="/cas/math/alumni-friends1.html">Alumni</a></li></ul><div class="relatedLinks relatedlinksreference reference parbase"></div></nav></div><div class="mobile-left-col hide-in-narrow" data-set="mobile-center-bottom-or-right-top"><div class="leftcol parsys iparsys" role="complementary"><div class="section"><div class="new"></div></div><div class="iparys_inherited"><div class="leftcol iparsys parsys"></div></div></div></div></div><script>\n                            (function() {\n                                var $firstLeftIparsysInherited = $(\'#left .iparys_inherited\').eq(0);\n                                var $firstLeftIparsysSection = $(\'#left > .iparsys:first-child > .section:first-child\');\n                                var $mcbort = $(\'.mobile-center-bottom-or-right-top\');\n\n                                if ($firstLeftIparsysInherited.length && $firstLeftIparsysInherited.html().replace(/\\s+|<\\/?div\\b[^>]*>/gi, \'\') === \'\')\n                                    $firstLeftIparsysInherited.addClass(\'empty\');\n                                \n                                if ($firstLeftIparsysSection.length && $firstLeftIparsysSection.html().replace(/\\s+|<\\/?div\\b[^>]*>/gi, \'\') === \'\')\n                                    $firstLeftIparsysSection.addClass(\'empty\');\n                                \n                                if ($mcbort.length && $mcbort.html().replace(/\\s+|<\\/?div\\b[^>]*>/gi, \'\') === \'\')\n                                    $mcbort.addClass(\'empty\');\n\n                                $(\'[role=complementary]\').each(function() {\n                                    var $this = $(this);\n                                    if ($this.children().filter(\':not(.empty)\').filter(\':not(:empty)\').length === 0)\n                                        $this.removeAttr(\'role\');\n                                });\n\n                                if ($(\'.leftcol[role=complementary]\').length > 0 && $(\'#right[role=complementary]\').length > 0) {\n                                    $(\'.leftcol[role=complementary]\').attr(\'aria-label\', \'left column\');\n                                    $(\'#right[role=complementary]\').attr(\'aria-label\', \'right column\');\n                                }\n                            })();\n                        </script><div id="skip-to-content"></div><div id="center" role="main"><div class="mobile-content-top" data-set="content-top"></div><div class="par parsys"><div class="title section"><h1 id="title">Graduate Students</h1></div><div class="image-container image-container-680"><div class="image border-show"><picture><source media="(max-width: 568px)" srcset="/content/cas/math/people/grad-directory/jcr:content/par/image.img.448.auto.q50.jpg/1460655962154.jpg, /content/cas/math/people/grad-directory/jcr:content/par/image.img.576.auto.q50.jpg/1460655962154.jpg 2x"><source media="(max-width: 720px)" srcset="/content/cas/math/people/grad-directory/jcr:content/par/image.img.688.auto.q80.jpg/1460655962154.jpg"><img alt="UB Strong" width="680" class="img-680 cq-dd-image" src="/content/cas/math/people/grad-directory/_jcr_content/par/image.img.680.auto.jpg/1460655962154.jpg"></picture></div></div><div class="title section"><h2 id="top">Mathematics Graduate Student Directory 2017-2018</h2></div><div class="introtext text parbase section"><p><a href="#letter_a">A</a> | <a href="#letter_b">B</a> | <a href="#letter_c">C</a> | <a href="#letter_d">D</a> | E | <a href="#letter_f">F</a> | <a href="#letter_g">G</a> | <a href="#letter_h">H</a> | I | <a href="#letter_j">J</a> | <a href="#letter_h">K</a> | <a href="#letter_l">L</a> | <a href="#letter_m">M</a> | <a href="#letter_n">N</a> | <a href="#letter_o">O</a> | <a href="#letter_p">P</a> | Q | <a href="#letter_r">R</a> | <a href="#letter_s">S</a> | <a href="#letter_t">T</a> | <a href="#letter_u">U</a> | <a href="#letter_v">V</a> | <a href="#letter_w">W</a> | <a href="#letter_x">X</a> | <a href="#letter_y">Y</a> | <a href="#letter_z">Z</a></p></div><div class="hr section hrline" style="clear:left;"></div><div class="title section"><h2 id="title_3">A</h2></div><div class="text parbase section"><p><b>Abeya Ranasinghe Mudiyanselage, Asela V.</b><br/> Office: 129&nbsp; Phone: 645-8817&nbsp;<br/> Email: aselavir@buffalo.edu<br/></p><p><b>Alegria, Linda</b><br/> Office: 138 Phone: 645-8823<br/> Email: lindaale@buffalo.edu<br/></p></div><div class="hr section hrline" style="clear:left;"></div><div class="title section"><h2 id="letter_b">B</h2></div><div class="text parbase section"><p><b>Bittner, Alyson</b><br/> Office: 130&nbsp;&nbsp;Phone: 645-8818&nbsp;&nbsp;<br/> Email: alysonbi@buffalo.edu</p></div><div class="calltoaction section"><span class="teaser teaser-inline calltoaction-style-small"> <a href="#top"> <span class="teaser-inner"> <span class="teaser-title">back to top</span> </span> </a> </span></div><div class="hr section hrline" style="clear:left;"></div><div class="title section"><h2 id="letter_c">C</h2></div><div class="text parbase section"><p><b>Cain Charles</b><br/> Office: 126 Phone: 645-8816<br/> Email: ccain2@buffalo.edu</p><p><b>Casper, Michael<br/> </b> Office: 222&nbsp; Phone: 645-8779<br/> Email: mjcasper@buffalo.edu</p><p><b>Chang, Hong<br/> </b> Office: 136 Phone: 645-8821<br/> Email: hchang24@buffalo.edu</p><p><b>Chen, Yen-Lin<br/> </b> Office: 125 Phone: 645-8815<br/> Email: yenlinch@buffalo.edu<br/></p><p><b>Cheuk, Ka Yue<br/> </b> Office: 140 Phone: 645-8825<br/> Email: kayueche@buffalo.edu</p><p><b>Chou, Han-Jung<br/> </b> Office:140 Phone: 645-8825<br/> Email: hanjungc@buffalo.edu</p><p><b>Cosgrove, Gage (Makenzie)<br/> </b> Office: 139 Phone: 645-8824<br/> Email: gagecosg@buffalo.edu</p></div><div class="calltoaction section"><span class="teaser teaser-inline calltoaction-style-small"> <a href="#top"> <span class="teaser-inner"> <span class="teaser-title">back to top</span> </span> </a> </span></div><div class="hr section hrline" style="clear:left;"></div><div class="title section"><h2 id="letter_d">D</h2></div><div class="text parbase section"><p><b>Deutsch, Dustin<br/> </b> Office: 140&nbsp; Phone: 645-8825<br/> Email: dustinde@buffalo.edu</p><p><b>Dey, Subhankar</b><br/> Office: 140&nbsp; Phone: 645-8825<br/> Email: subhanka@buffalo.edu</p><p><b>Doga, Hakan</b><br/> Office: 126&nbsp; Phone: 645-8816<br/> Email: hakandog@buffalo.edu</p><p><b>Dong, Sai<br/> </b> Office: 138 Phone: 645-8823<br/> Email: saidong@buffalo.edu</p></div><div class="calltoaction section"><span class="teaser teaser-inline calltoaction-style-small"> <a href="#top"> <span class="teaser-inner"> <span class="teaser-title">back to top</span> </span> </a> </span></div><div class="title section"><h2 id="letter_e">E</h2></div><div class="text parbase section"><p><b>Engelhardt, Carolyn<br/> </b> Office: 132 Phone: 645-8820<br/> Email: cengelha@buffalo.edu<br/></p></div><div class="title section"><h2 id="letter_g">G</h2></div><div class="text parbase section"><p><b>Goswami, Abhishek<br/> </b> Office: 125 Phone: 645-8815<br/> Email: goswami3@buffalo.edu</p><p><b>Gu, Jiaxi</b><br/> Office: 132&nbsp; Phone: 645-8820&nbsp;<br/> Email: jiaxigu@buffalo.edu</p></div><div class="title section"><h2 id="letter_h">H</h2></div><div class="text parbase section"><p><b>Hopfensperger, John</b><br/> Office: 139&nbsp; Phone: 645-8824<br/> Email: johnhopf@buffalo.edu</p><p><b>Hung, Tsz Fun</b><br/> Office: 137&nbsp; Phone: 645-8822<br/> Email: tszfunhu@buffalo.edu</p><p><b>Huynh, Bao<br/> </b> Office: 131 Phone: 645-8819<br/> Email: baohuynh@buffalo.edu</p></div><div class="calltoaction section"><span class="teaser teaser-inline calltoaction-style-small"> <a href="#top"> <span class="teaser-inner"> <span class="teaser-title">back to top</span> </span> </a> </span></div><div class="title section"><h2 id="letter_j">J</h2></div><div class="text parbase section"><p><b>Jeong, Myonggin<br/> </b> Office: 132 Phone: 645-8820<br/> Email: myonggin@buffalo.edu<br/></p><p><b>Jin, Xifeng</b><br/> Office: 137&nbsp; Phone: 645-8822<br/> Email: xifengji@buffalo.edu</p><p><b>Johnson, Megan</b><br/> Office: 132&nbsp; Phone: 645-8820<br/> Email: meganjoh@buffalo.edu</p><p><b>Jones, Raymond</b><br/> Office: 140&nbsp; Phone: 645-8825<br/> Email: rpjones2@buffalo.edu</p></div><div class="title section"><h2 id="letter_k">K</h2></div><div class="text parbase section"><p><b>Kilic, Bengier Ulgen<br/> </b> Office: 125 Phone: 645-8815<br/> Email: bengieru@buffalo.edu</p><p><b>Kim, Jiseong<br/> </b> Office: 125 Phone: 645-8815<br/> Email: jiseongk@buffalo.edu</p><p><b>Kireyev, Dmitri</b><br/> Office: 138&nbsp; Phone: 645-8823<br/> Email: dmitriki@buffalo.edu<br/></p></div><div class="calltoaction section"><span class="teaser teaser-inline calltoaction-style-small"> <a href="#top"> <span class="teaser-inner"> <span class="teaser-title">back to top</span> </span> </a> </span></div><div class="title section"><h2 id="letter_l">L</h2></div><div class="text parbase section"><p><b>Le, Minh Quang</b><br/> Office: 131&nbsp; Phone: 645-8819<br/> Email: minhquan@buffalo.edu<br/></p><p><b>Lin, Wei</b><br/> Office: 313&nbsp; Phone: 645-8827<br/> Email: wlin27@buffalo.edu<br/></p><p><b>Liu, Ruodan</b><br/> Office: 140 Phone: 645-8825<br/> Email: rliu8@buffalo.edu</p><p><b>Liu,Tianmou<br/> </b> Office: 136 Phone: 645-8821<br/> Email: tianmoul@buffalo.edu</p><p><b>Liu, Yuan</b><br/> Office: 140 Phone: 645-8825<br/> Email: yuanliu@buffalo.edu</p><p><b>Lottes, Jonathan</b><br/> Office: 129 Phone: 645-8817<br/> Email: jllottes@buffalo.edu</p><p>&nbsp;</p></div><div class="calltoaction section"><span class="teaser teaser-inline calltoaction-style-small"> <a href="#top"> <span class="teaser-inner"> <span class="teaser-title">back to top</span> </span> </a> </span></div><div class="title section"><h2 id="letter_m">M</h2></div><div class="text parbase section"><p><b>Ma, Ning<br/> </b> Office: 125&nbsp; Phone: 645-8815<br/> Email: nma22@buffalo.edu<br/></p><p><b>Ma, Renda<br/> </b> Office: 125&nbsp; Phone: 645-8815<br/> Email: rendama@buffalo.edu</p><p><b>Ma, Yuqing</b><br/> Office: 138&nbsp; Phone: 645-8823&nbsp;<br/> Email: yuqingma@buffalo.edu</p><p><b>Mandava, Navya<br/> </b> Office: 130&nbsp; Phone: 645-8818<br/> Email: navyatejam@gmail.com</p><p><b>Meng, Lingqi<br/> </b> Office: 130 Phone: 645-8818<br/> Email: lingqime@buffalo.edu</p><p><b>Montoro, Michael<br/> </b> Office: 126&nbsp; Phone: 645-8816<br/> Email: mnmontor@buffalo.edu<br/></p></div><div class="title section"><h2 id="letter_n">N</h2></div><div class="text parbase section"></div><div class="calltoaction section"><span class="teaser teaser-inline calltoaction-style-small"> <a href="#top"> <span class="teaser-inner"> <span class="teaser-title">back to top</span> </span> </a> </span></div><div class="title section"><h2 id="letter_o">O</h2></div><div class="text parbase section"><p><b>Oregero, Jeffrey</b><br/> Office: 129&nbsp; Phone: 645-8817&nbsp;<br/> Email: jaoreger@buffalo.edu</p></div><div class="title section"><h2 id="letter_p">P</h2></div><div class="text parbase section"><p><b>Peng, Jun</b><br/> Office: 139 Phone: 645-8824<b><br/> </b> Email: jpeng3@buffalo.edu<br/></p></div><div class="title section"><h2 id="letter_r">R</h2></div><div class="text parbase section"><p><b>Raico, Pasquale<br/> </b> Office: 140 Phone: 645-8825<br/> Email: ppraico@buffalo.edu</p><p><b>Rozwood, Bud<br/> </b> Office: 125 Phone: 645-8815<b><br/> </b> Email: budrozwo@buffalo.edu</p></div><div class="title section"><h2 id="letter_s">S</h2></div><div class="text parbase section"><p><b>Sailbery, Mitchell</b><br/> Office: 126 Phone: 645-8816<br/> Email: msailsbe@buffalo.edu</p><p><b>Samer, Andrew<br/> </b> Office: 130&nbsp; Phone: 645-8818<br/> Email: agsamer@buffalo.edu</p><p><b>Schilder, Marc</b><br/> Office: 313 Phone: 645-8827<br/> Email: mbschild@buffalo.edu</p><p><b>Schmidt, Matthew</b><br/> Office: 129&nbsp;&nbsp;Phone: 645-8817&nbsp;<br/> Email: mwschmid@buffalo.edu</p><p><b>Shi, Ruonan</b><br/> Office: 139&nbsp; Phone: 645-8824<br/> Email: ruonansh@buffalo.edu</p><p><b>Solanski, Deepisha</b><br/> Office: 140 Phone: 645-8825<br/> Email: deepisha@buffalo.edu</p><p><b>Song, Zhao<br/> </b> Office: 131 Phone: 645-8819<br/> Email: zhaosong@buffalo.edu</p><p><b>Sullivan, Mark</b><br/> Office: 136&nbsp; Phone: 645-8821<br/> Email: marksull@buffalo.edu</p><p><b>Sun, Yuxun</b><br/> Office: 140 Phone: 645-8825<br/> Email: yuxunsun@buffalo.edu</p></div><div class="calltoaction section"><span class="teaser teaser-inline calltoaction-style-small"> <a href="#top"> <span class="teaser-inner"> <span class="teaser-title">back to top</span> </span> </a> </span></div><div class="title section"><h2 id="letter_u">U</h2></div><div class="text parbase section"><p><b>Upadhyay, Aparna</b><br/> Office: 136&nbsp; Phone: 645-8821<br/> Email: aparnaup@buffalo.edu</p></div><div class="title section"><h2 id="letter_w">W</h2></div><div class="text parbase section"><p><b>Wang, Biao<br/> </b> Office: 125 Phone: 645-8815<br/> Email: bwang32@buffalo.edu</p><p><b>Wang, Daxun<br/> </b> Office: 141 Phone: 645-8825<br/> Email: daxunwan@buffalo.edu</p><p><b>Wang, Shiruo<br/> </b> Office: 125 Phone: 645-8815<br/> Email: shiruo@buffalo.edu</p><p><b>Wang, Weiqi<br/> </b> Office: 125 Phone: 645-8815<br/> Email: weiqiwan@buffalo.edu</p><p><b>Winton, Daniel<br/> </b> Office: 125 Phone: 645-8815<br/> Email: dmwinton@buffalo.edu<br/></p></div><div class="calltoaction section"><span class="teaser teaser-inline calltoaction-style-small"> <a href="#top"> <span class="teaser-inner"> <span class="teaser-title">back to top</span> </span> </a> </span></div><div class="title section"><h2 id="letter_y">Y</h2></div><div class="text parbase section"><p><b>Yuan, Cheng</b><br/> Office: 137&nbsp; Phone: 645-8822<br/> Email: chengyua@buffalo.edu</p></div><div class="title section"><h2 id="letter_z">Z</h2></div><div class="text parbase section"><p><b>Zalloum, Abdalrazzaq R.A.<br/> </b><a href="http://www.acsu.buffalo.edu/%7Eabdalraz/" target="_blank">Personal Website</a><br/> Office: 140&nbsp; Phone: 645-8825&nbsp;<br/> Email: abdalraz@buffalo.edu</p><p><b>Zeng, Naijiang</b><br/> Office: 137&nbsp; Phone: 645-8822<br/> Email: naijiang@buffalo.edu</p><p><b>Zhou, Chen</b><br/> Office: 137&nbsp; Phone: 645-8822<br/> Email: czhou5@buffalo.edu</p><p><b>Ziegler, Cameron</b><br/> Office: 140&nbsp; Phone: 645-8825<br/> Email: cz22@buffalo.edu</p></div><div class="calltoaction section"><span class="teaser teaser-inline calltoaction-style-small"> <a href="#top"> <span class="teaser-inner"> <span class="teaser-title">back to top</span> </span> </a> </span></div></div><div class="mobile-content-bottom" data-set="content-bottom"></div><div class="mobile-center-or-right-bottom" data-set="center-or-right-bottom"></div><div class="mobile-center-bottom-or-right-top" data-set="mobile-center-bottom-or-right-top"></div></div></div></div></div></div></div></div></div></div></div></div><footer><div class="footer inheritedreference reference parbase"><div class="footerconfigpage contentpage page"><div class="par parsys"><div class="htmlsnippet section"><div><style type="text/css">\n\n    @only screen and (max-width: 720px){\n    \n        .simplefooter .simplefootercontents > .copyright {\n            clear: both;\n            position: relative;\n            top: 7px;\n        }\n    }\n</style></div></div><div class="fatfooter section"><div class="footer-mode-simple"><a href="//www.buffalo.edu/"> <img class="ub-logo" src="//www.buffalo.edu/v-e541efb31faa2518c910054a542e8044/etc/designs/ubcms/images/fatfooter/ub-logo-two-line.png" alt="University at Buffalo The State University of New York" width="241" height="32"/> </a><div class="footer-columns footer-columns-1"><div class="footer-column footer-column-1"><div class="col1 parsys"><div class="title section"><h2 id="title-1"><a href="/cas/math.html">Department of Mathematics</a></h2></div><div class="text parbase section"><p>244 Mathematics Building<br/> Buffalo, NY 14260-2900<br/> Phone: (716) 645-6284<br/> Fax: (716) 645-5039</p></div></div></div></div><div class="copyright"><span class="copy"></span><script>jQuery(".copyright .copy").html("&copy; " + (new Date()).getFullYear());</script>&nbsp;<a href="//www.buffalo.edu/">University at Buffalo</a>. All rights reserved.&nbsp;&nbsp;|&nbsp;&nbsp;<a href="//www.buffalo.edu/administrative-services/policy1/ub-policy-lib/privacy.html">Privacy</a>&nbsp;&nbsp;|&nbsp; <a href="//www.buffalo.edu/access/about-us/contact-us.html">Accessibility</a></div></div></div><div class="htmlsnippet section"><div><!-- Global site tag (gtag.js) - Google Analytics --><script async src="https://www.googletagmanager.com/gtag/js?id=UA-127757988-27"></script><script>\n  window.dataLayer = window.dataLayer || [];\n  function gtag(){dataLayer.push(arguments);}\n  gtag(\'js\', new Date());\n\n  gtag(\'config\', \'UA-127757988-27\');\n</script></div></div></div></div></div></footer></body></html>'
In [6]:
r = requests.get("https://bit.ly/2V8pGeS")
bird = r.content

Save content to a file:

In [7]:
foo = open("bird.jpg", "wb") # open a file w=writing access, b=binary
foo.write(bird) # write to the file 
foo.close() # close file
go top

3. Beautiful Soup


Beautiful Soup is a Python library for parsing HTML documents.
In [5]:
from bs4 import BeautifulSoup
In [7]:
grads
Out[7]:
'<!DOCTYPE HTML><html lang="en" class="ubcms-63"><!-- cmspub02 0222-202704 --><head><meta http-equiv="X-UA-Compatible" content="IE=edge"/><meta http-equiv="content-type" content="text/html; charset=UTF-8"/><meta id="meta-viewport" name="viewport" content="width=device-width,initial-scale=1"/><script>if (screen.width > 720 && screen.width < 960) document.getElementById(\'meta-viewport\').setAttribute(\'content\',\'width=960\');</script><script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({\'gtm.start\':new Date().getTime(),event:\'gtm.js\'});var f=d.getElementsByTagName(s)[0],j=d.createElement(s),dl=l!=\'dataLayer\'?\'&l=\'+l:\'\';j.async=true;j.src=\'https://www.googletagmanager.com/gtm.js?id=\'+i+dl;f.parentNode.insertBefore(j,f);})(window,document,\'script\',\'dataLayer\',\'GTM-T5KRRKT\');</script><title>Graduate Students - Department of Mathematics - University at Buffalo</title><link rel="canonical" href="http://www.buffalo.edu/cas/math/people/grad-directory.html"/><meta name="date" content="2019-02-18"/><meta name="og:title" content="Graduate Student Directory"/><meta name="og:description" content=" A | B | C | D | E | F | G | H | I | J | K | L | M | N | O | P | Q | R | S | T | U | V | W | X | Y | Z "/><meta name="og:image" content="http://www.buffalo.edu/cas/math/people/grad-directory/_jcr_content/par/image.img.512.auto.jpg/1460655962154.jpg"/><meta name="twitter:card" content="summary"/><link rel="stylesheet" href="//www.buffalo.edu/v-1112aac6c88ad5185a00a5e848656c51/etc/designs/ubcms/clientlibs.min.1112aac6c88ad5185a00a5e848656c51.css" type="text/css"><link type="text/css" rel="stylesheet" href="//www.buffalo.edu/v-9cc4b89851550cf5e105d25db85ba3e9/etc/designs/cas/math/css/main.css"/><script type="text/javascript" src="//www.buffalo.edu/v-a5cfe42345b997301b175d241d0eba88/etc/designs/ubcms/clientlibs.min.a5cfe42345b997301b175d241d0eba88.js"></script><style type="text/css">body.page #page, body.page .page-inner {background-color:#FFFFFF}</style><script>(function(i,s,o,g,r,a,m){i[\'GoogleAnalyticsObject\']=r;i[r]=i[r]||function(){(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)})(window,document,\'script\',\'//www.google-analytics.com/analytics.js\',\'ga\');ga(\'create\', \'UA-67291618-1\', \'auto\');ga(\'send\', \'pageview\');</script><script type="text/javascript">\n        /*<![CDATA[*/\n        (function() {\n            var sz = document.createElement(\'script\'); sz.type = \'text/javascript\'; sz.async = true;\n            sz.src = \'//siteimproveanalytics.com/js/siteanalyze_75159.js\';\n            var s = document.getElementsByTagName(\'script\')[0]; s.parentNode.insertBefore(sz, s);\n        })();\n        /*]]>*/\n    </script></head><body class="contentpage page"><noscript><iframe src="https://www.googletagmanager.com/ns.html?id=GTM-T5KRRKT"height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript><nav aria-label="skip to content"><a href="#skip-to-content" id="skip-to-content-link">Skip to Content</a></nav><div id="page"><div class="page-inner"><div class="page-inner-1"><div class="page-inner-2"><div class="page-inner-2a"></div><div class="page-inner-3"><header><div class="innerheader inheritedreference reference parbase"><div class="headerconfigpage contentpage page"><div class="par parsys"><div class="alertbanner reference parbase section"><script>jQuery(\'.cap-message\').detach().insertBefore(\'#page\').wrap(\'<section aria-label="UB Alert">\');</script></div><div class="header section"><style>\n            .innerheader { padding-top: 158px }\n            .header { height: 158px }\n            .header .main { height: 134px }\n        </style><div><div class="top theme-blue" data-set="header-links"><ul class="school-links"><li><a href="http://arts-sciences.buffalo.edu/">College of Arts and Sciences</a></li></ul><ul class="pervasive-links"><li><a href="//www.buffalo.edu">UB Home</a></li><li><a href="//www.buffalo.edu/maps">Maps</a></li><li><a href="//www.buffalo.edu/directory/">UB Directory</a></li></ul></div><div class="main theme-blue brand-extension lines-1"><div class="lockup"><a href="//www.buffalo.edu"> <i class="icon icon-ub-logo"></i> <span class="logo"> <img class="black" src="//www.buffalo.edu/v-be9166b6b4a1ea7e5771e2eba1d410cf/etc/designs/ubcms/images/header/ub-logo-black.png" alt="University at Buffalo" width="181" height="20"/> </span> </a><div class="mobile-links" data-set="header-links"></div><div class="title"><a href="/cas/math.html">Department of Mathematics</a></div></div><div class="social" data-set="headersocial"></div><div class="tasknav" data-set="tasknav"><div class="buttoncomponent sidebyside orange"><a href="http://www.buffalo.edu/ub_admissions/apply-now.html" target="_blank">Apply to UB</a></div><div class="buttoncomponent sidebyside blue"><a href="http://www.buffalo.edu/cas/math/about-us/contact-us.html">Contact Us</a></div><div class="buttoncomponent sidebyside green"><a href="https://ubfoundation.buffalo.edu/giving/index.php?action=use-parameters&amp;gift_allocation=9351124026" target="_blank">Support UB Math</a></div></div></div></div></div><div class="mobilemenu section"><!--noindex--><nav aria-label="mobile navigation menu"><ul><li class="mobileheader-button-menu" style="display: none"><a href="#">Menu</a></li><li class="mobileheader-button-search" style="display: none"><a href="#">Search</a></li></ul></nav><!--endnoindex--><div id="mobile-search" class="menu"><div id="mobile-search-inner" class="menu-inner" data-set="mobile-search"></div></div><div id="mobile-menu" class="menu"><div class="menu-inner"><div id="mobile-menu-inner"><div class="loading"><!--noindex-->Loading menu...<!--endnoindex--></div></div><div class="tasknav" data-set="tasknav"></div><div class="headersocial" data-set="headersocial"></div></div></div><script>\n    jQuery(\'.mobileheader-button-menu\').removeAttr(\'style\');\n    jQuery(document).ready(function() {\n        if ($(\'.topnav .search .form\').length > 0) {\n            $(\'.mobileheader-button-search\').removeAttr(\'style\');\n        }\n    });\n    UBCMS.rwd.mobileMenu.load(\'\\/content\\/cas\\/math\\/jcr:content.nav.html\', \'http:\\/\\/www.buffalo.edu\\/cas\\/math\\/people\\/grad-directory.html\');\n</script></div><div class="topnav section"><nav class="topnav-inner" aria-label="site navigation"><div class="main"><ul class="menu"><li class="first theme-secondary theme-putnam-gray"><a id="ubcms-gen-257337163" aria-haspopup="true" href="/cas/math/about-us.html"><span class="container">About</span></a><div class="topnav-submenu-container" aria-labelledby="ubcms-gen-257337163"><ul class="submenu clearfix"><li class="first"><a aria-label="About:Why Choose Us?" href="/cas/math/about-us/why-choose.html">Why Choose Us?</a></li><li><a aria-label="About:Our Mission" href="/cas/math/about-us/our-mission.html">Our Mission</a></li><li><a aria-label="About:Our Alumni, Students, and Faculty" href="/cas/math/about-us/our-alumni.html">Our Alumni, Students, and Faculty</a><div class="topnav-submenu-children-container list"><ul class="submenu-children clearfix link-list"><li class="first"><a aria-label="Our Alumni, Students, and Faculty:Our Alumni" href="/cas/math/about-us/our-alumni/our-alumni.html">Our Alumni</a></li><li><a aria-label="Our Alumni, Students, and Faculty:Our Students" href="/cas/math/about-us/our-alumni/our-students.html">Our Students</a></li><li class="last"><a aria-label="Our Alumni, Students, and Faculty:Our Faculty" href="/cas/math/about-us/our-alumni/our-faculty.html">Our Faculty</a></li></ul></div></li><li><a aria-label="About:Memberships" href="/cas/math/about-us/memberships.html">Memberships</a><div class="topnav-submenu-children-container list"><ul class="submenu-children clearfix link-list"><li class="first"><a aria-label="Memberships:American Mathematical Society" href="/cas/math/about-us/memberships/AMS.html">American Mathematical Society</a></li><li><a aria-label="Memberships:Association for Women in Mathematics" href="/cas/math/about-us/memberships/AWM.html">Association for Women in Mathematics</a></li><li class="last"><a aria-label="Memberships:Mathematical Sciences Research Institute" href="/cas/math/about-us/memberships/MSRI.html">Mathematical Sciences Research Institute</a></li></ul></div></li><li><a aria-label="About:Community Outreach" href="/cas/math/about-us/community-outreach.html">Community Outreach</a></li><li><a aria-label="About:About the University" href="/cas/math/about-us/about-the-university.html">About the University</a></li><li><a aria-label="About:About Buffalo-Niagara" href="/cas/math/about-us/the-buffalo-niagara-region.html">About Buffalo-Niagara</a></li><li class="last"><a aria-label="About:Contact Us" href="/cas/math/about-us/contact-us.html">Contact Us</a></li></ul><div class="relatedLinks relatedlinksreference reference parbase"><div class="nav-related-links"><!--noindex--><div class="subnav-title">Related Links</div><!--endnoindex--><div class="relatedlinkspage unstructuredpage page"><div class="par parsys"><div class="relatedlinks list parbase section"><div id="ubcms-gen-257337191"><ul class="link-list" data-columnize="1"><li><span class="teaser teaser-inline"> <a href="/cas/math/people/faculty.html"> <span class="teaser-inner"> <!--noindex--> <span class="teaser-date">9/7/18</span> <!--endnoindex--> <span class="teaser-title">Faculty</span> </span> </a> </span></li><li><span class="teaser teaser-inline"> <a href="/cas/math/people/staff_directory.html"> <span class="teaser-inner"> <!--noindex--> <span class="teaser-date">6/14/17</span> <!--endnoindex--> <span class="teaser-title">Staff</span> </span> </a> </span></li><li><span class="teaser teaser-inline"> <a href="/cas/math/people/emeriti.html"> <span class="teaser-inner"> <!--noindex--> <span class="teaser-date">3/3/18</span> <!--endnoindex--> <span class="teaser-title">Emeriti Faculty</span> </span> </a> </span></li><li><span class="teaser teaser-inline"> <a href="/cas/math/people/instructors.html"> <span class="teaser-inner"> <!--noindex--> <span class="teaser-date">11/21/17</span> <!--endnoindex--> <span class="teaser-title">Instructors</span> </span> </a> </span></li><li><span class="teaser teaser-inline"> <a href="/cas/math/people/grad-directory.html"> <span class="teaser-inner"> <!--noindex--> <span class="teaser-date">2/18/19</span> <!--endnoindex--> <span class="teaser-title">Graduate Student Directory</span> </span> </a> </span></li><li><span class="teaser teaser-inline"> <a href="/cas/math/alumni-friends1.html"> <span class="teaser-inner"> <!--noindex--> <span class="teaser-date">3/26/18</span> <!--endnoindex--> <span class="teaser-title">Alumni</span> </span> </a> </span></li></ul></div><div class="clearfix"></div></div></div></div></div></div></div></li><li class="theme-secondary theme-putnam-gray active-trail"><a id="ubcms-gen-257337212" aria-haspopup="true" href="/cas/math/people.html"><span class="container">People</span></a><div class="topnav-submenu-container" aria-labelledby="ubcms-gen-257337212"><ul class="submenu clearfix"><li class="first"><a aria-label="People:Faculty" href="/cas/math/people/faculty.html">Faculty</a></li><li><a aria-label="People:Staff" href="/cas/math/people/staff_directory.html">Staff</a></li><li><a aria-label="People:Emeriti Faculty" href="/cas/math/people/emeriti.html">Emeriti Faculty</a></li><li><a aria-label="People:Instructors" href="/cas/math/people/instructors.html">Instructors</a></li><li class="active-trail"><a class="active" aria-label="People:Graduate Students" href="/cas/math/people/grad-directory.html">Graduate Students</a></li><li class="last"><a aria-label="People:Alumni" href="/cas/math/alumni-friends1.html">Alumni</a></li></ul><div class="relatedLinks relatedlinksreference reference parbase"></div></div></li><li class="theme-secondary theme-putnam-gray"><a id="ubcms-gen-257337222" aria-haspopup="true" href="/cas/math/research.html"><span class="container">Research</span></a><div class="topnav-submenu-container" aria-labelledby="ubcms-gen-257337222"><ul class="submenu clearfix"><li class="first"><a aria-label="Research:Algebra" href="/cas/math/research/algebra.html">Algebra</a></li><li><a aria-label="Research:Analysis" href="/cas/math/research/analysis.html">Analysis</a></li><li><a aria-label="Research:Applied Mathematics" href="/cas/math/research/applied-mathematics.html">Applied Mathematics</a></li><li class="last"><a aria-label="Research:Geometry and Topology " href="/cas/math/research/geometry-topology.html">Geometry and Topology </a></li></ul><div class="relatedLinks relatedlinksreference reference parbase"></div></div></li><li class="theme-secondary theme-putnam-gray"><a id="ubcms-gen-257337229" aria-haspopup="true" href="/cas/math/ug.html"><span class="container">Undergraduate</span></a><div class="topnav-submenu-container" aria-labelledby="ubcms-gen-257337229"><ul class="submenu clearfix"><li class="first"><a aria-label="Undergraduate:Undergraduate Programs" href="/cas/math/ug/undergraduate-programs.html">Undergraduate Programs</a></li><li><a aria-label="Undergraduate:Undergraduate Research" href="/cas/math/ug/undergraduate-research.html">Undergraduate Research</a></li><li><a aria-label="Undergraduate:Honors, Awards, and Scholarships" href="/cas/math/ug/honors--awards--and-scholarships.html">Honors, Awards, and Scholarships</a></li><li><a aria-label="Undergraduate:Undergraduate Courses" href="/cas/math/ug/ug-courses.html">Undergraduate Courses</a><div class="topnav-submenu-children-container list"><ul class="submenu-children clearfix link-list"><li class="first last"><a aria-label="Undergraduate Courses:Sample Syllabi" href="/cas/math/ug/ug-courses/syllabi.html">Sample Syllabi</a></li></ul></div></li><li><a aria-label="Undergraduate:Mathematics Help" href="/cas/math/ug/math-help.html">Mathematics Help</a><div class="topnav-submenu-children-container list"><ul class="submenu-children clearfix link-list"><li class="first last"><a aria-label="Mathematics Help:ALEKS Assessment for MTH 121, 131, 141" href="/cas/math/ug/math-help/aleks.html">ALEKS Assessment for MTH 121, 131, 141</a></li></ul></div></li><li class="last"><a aria-label="Undergraduate:Association for Women in Mathematics" href="/cas/math/about-us/memberships/AWM.html">Association for Women in Mathematics</a></li></ul><div class="relatedLinks relatedlinksreference reference parbase"></div></div></li><li class="theme-secondary theme-putnam-gray"><a id="ubcms-gen-257337241" aria-haspopup="true" href="/cas/math/grad.html"><span class="container">Graduate</span></a><div class="topnav-submenu-container" aria-labelledby="ubcms-gen-257337241"><ul class="submenu clearfix"><li class="first"><a aria-label="Graduate:Master\'s Program" href="/cas/math/grad/master-program.html">Master\'s Program</a><div class="topnav-submenu-children-container list"><ul class="submenu-children clearfix link-list"><li class="first last"><a aria-label="Master\'s Program:MA Focus in Applied and Interdisciplinary Mathematics" href="/cas/math/grad/master-program/focus.html">MA Focus in Applied and Interdisciplinary Mathematics</a></li></ul></div></li><li><a aria-label="Graduate:Doctoral Program (PhD)" href="/cas/math/grad/doctoral-program.html">Doctoral Program (PhD)</a></li><li><a aria-label="Graduate:Request Information" href="/cas/math/grad/request-information.html">Request Information</a></li><li><a aria-label="Graduate:Admissions" href="/cas/math/grad/grad-admissions.html">Admissions</a></li><li><a aria-label="Graduate:Courses" href="/cas/math/grad/grad-courses.html">Courses</a></li><li><a aria-label="Graduate:Graduate Research" href="/cas/math/grad/grad-research.html">Graduate Research</a></li><li><a aria-label="Graduate:Fellowships, Scholarships, Awards" href="/cas/math/grad/fellowships-awards.html">Fellowships, Scholarships, Awards</a></li><li><a aria-label="Graduate:Association for Women in Mathematics" href="/cas/math/about-us/memberships/AWM.html">Association for Women in Mathematics</a></li><li class="last"><a aria-label="Graduate:Graduate Student Directory" href="/cas/math/people/grad-directory.html">Graduate Student Directory</a></li></ul><div class="relatedLinks relatedlinksreference reference parbase"></div></div></li><li class="theme-secondary theme-putnam-gray"><a id="ubcms-gen-257337256" aria-haspopup="true" href="/cas/math/courses.html"><span class="container">Courses</span></a></li><li class="last theme-secondary theme-putnam-gray"><a id="ubcms-gen-257337258" aria-haspopup="true" href="/cas/math/news-events/news.html"><span class="container">News &amp; Events</span></a><div class="topnav-submenu-container" aria-labelledby="ubcms-gen-257337258"><ul class="submenu clearfix"><li class="first"><a aria-label="News &amp; Events:News" href="/cas/math/news-events/news.html">News</a></li><li><a aria-label="News &amp; Events:Events Calendar" href="/cas/math/news-events/calendar.html">Events Calendar</a></li><li><a aria-label="News &amp; Events:Myhill Lecture Series" href="/cas/math/news-events/myhill.html">Myhill Lecture Series</a><div class="topnav-submenu-children-container list"><ul class="submenu-children clearfix link-list"><li class="first"><a aria-label="Myhill Lecture Series:Mark Newman, 2018" href="/cas/math/news-events/myhill/mark-newman.html">Mark Newman, 2018</a></li><li><a aria-label="Myhill Lecture Series:Guoliang Yu, 2017" href="/cas/math/news-events/myhill/guoliangyu.html">Guoliang Yu, 2017</a></li><li><a aria-label="Myhill Lecture Series:Gopal Prasad, 2016" href="/cas/math/news-events/myhill/gopal-prasad.html">Gopal Prasad, 2016</a></li><li><a aria-label="Myhill Lecture Series:Ciprian Manolescu, 2015" href="/cas/math/news-events/myhill/ciprian-manolescu.html">Ciprian Manolescu, 2015</a></li><li><a aria-label="Myhill Lecture Series:Percy A. Deift, 2014" href="/cas/math/news-events/myhill/percy-deift.html">Percy A. Deift, 2014</a></li><li class="last"><a aria-label="Myhill Lecture Series:Peter Sarnak, 2013" href="/cas/math/news-events/myhill/peter-sarnak.html">Peter Sarnak, 2013</a></li></ul></div></li><li><a aria-label="News &amp; Events:News &amp; Events Archive" href="/cas/math/news-events/archives.html">News &amp; Events Archive</a></li><li class="last"><a aria-label="News &amp; Events:Visiting UB" href="/cas/math/news-events/visiting.html">Visiting UB</a></li></ul><div class="relatedLinks relatedlinksreference reference parbase"></div></div></li></ul></div><div class="right"><div class="search"><!--noindex--><div role="search"><div class="label" onmouseenter="jQuery(this).parent().find(\'input[type=text]\').focus().select()">Search</div><div class="form" onmouseleave="jQuery(this).parent().find(\'input[type=text]\').blur()"><div data-set="mobile-search" class="form-content"><form method="GET" action="/cas/math/searchresults.html" onsubmit="return this.q.value != \'\'"> <label for="ubcms-gen-257337273" class="ada-hidden">Search</label> <input id="ubcms-gen-257337273" type="text" name="q" value="" placeholder="Search" autocomplete="off" onfocus="jQuery(this).parents(\'.form\').addClass(\'show-search\')" onblur="jQuery(this).parents(\'.form\').removeClass(\'show-search\')"/> <i class="icon icon-search"></i> <input type="submit" value="Search" onfocus="jQuery(this).parents(\'.form\').addClass(\'show-search\')" onblur="jQuery(this).parents(\'.form\').removeClass(\'show-search\')"/> </form></div></div></div><!--endnoindex--></div><div class="audiencenav list parbase"><div tabindex="0" class="audiencenav-wrapper"><div class="label">Info For</div><ul><li><a onfocus="jQuery(this).parents(\'.audiencenav-wrapper\').addClass(\'hover\')" onblur="jQuery(this).parents(\'.audiencenav-wrapper\').removeClass(\'hover\')" href="/cas/math/information-for-students.html"> Current Students </a></li><li><a onfocus="jQuery(this).parents(\'.audiencenav-wrapper\').addClass(\'hover\')" onblur="jQuery(this).parents(\'.audiencenav-wrapper\').removeClass(\'hover\')" href="/cas/math/ug/undergraduate-programs.html"> Future Undergraduate Students </a></li><li><a onfocus="jQuery(this).parents(\'.audiencenav-wrapper\').addClass(\'hover\')" onblur="jQuery(this).parents(\'.audiencenav-wrapper\').removeClass(\'hover\')" href="/cas/math/grad.html"> Future Graduate Students </a></li><li><a onfocus="jQuery(this).parents(\'.audiencenav-wrapper\').addClass(\'hover\')" onblur="jQuery(this).parents(\'.audiencenav-wrapper\').removeClass(\'hover\')" href="/cas/math/information-for-faculty-staff.html"> Faculty &amp; Staff </a></li><li><a onfocus="jQuery(this).parents(\'.audiencenav-wrapper\').addClass(\'hover\')" onblur="jQuery(this).parents(\'.audiencenav-wrapper\').removeClass(\'hover\')" href="/cas/math/alumni-friends1.html"> Alumni &amp; Friends </a></li></ul></div></div></div></nav><script>$(".topnav").accessibleDropDown();</script></div></div></div></div></header><div id="columns" class="two-column clearfix"><div class="columns-bg columns-bg-1"><div class="columns-bg columns-bg-2"><div class="columns-bg columns-bg-3"><div class="columns-bg columns-bg-4"><div id="left"><div class="leftnav"><nav class="inner" aria-label="section navigation"><div class="title"><a href="/cas/math/people.html"><span class="title">People</span></a></div><ul class="menu nav-level-1"><li class="first"><a aria-label="People:Faculty" href="/cas/math/people/faculty.html">Faculty</a></li><li><a aria-label="People:Staff" href="/cas/math/people/staff_directory.html">Staff</a></li><li><a aria-label="People:Emeriti Faculty" href="/cas/math/people/emeriti.html">Emeriti Faculty</a></li><li><a aria-label="People:Instructors" href="/cas/math/people/instructors.html">Instructors</a></li><li class="active-trail"><span><a class="active" aria-label="People:Graduate Students" href="/cas/math/people/grad-directory.html">Graduate Students</a></span></li><li class="last"><a aria-label="People:Alumni" href="/cas/math/alumni-friends1.html">Alumni</a></li></ul><div class="relatedLinks relatedlinksreference reference parbase"></div></nav></div><div class="mobile-left-col hide-in-narrow" data-set="mobile-center-bottom-or-right-top"><div class="leftcol parsys iparsys" role="complementary"><div class="section"><div class="new"></div></div><div class="iparys_inherited"><div class="leftcol iparsys parsys"></div></div></div></div></div><script>\n                            (function() {\n                                var $firstLeftIparsysInherited = $(\'#left .iparys_inherited\').eq(0);\n                                var $firstLeftIparsysSection = $(\'#left > .iparsys:first-child > .section:first-child\');\n                                var $mcbort = $(\'.mobile-center-bottom-or-right-top\');\n\n                                if ($firstLeftIparsysInherited.length && $firstLeftIparsysInherited.html().replace(/\\s+|<\\/?div\\b[^>]*>/gi, \'\') === \'\')\n                                    $firstLeftIparsysInherited.addClass(\'empty\');\n                                \n                                if ($firstLeftIparsysSection.length && $firstLeftIparsysSection.html().replace(/\\s+|<\\/?div\\b[^>]*>/gi, \'\') === \'\')\n                                    $firstLeftIparsysSection.addClass(\'empty\');\n                                \n                                if ($mcbort.length && $mcbort.html().replace(/\\s+|<\\/?div\\b[^>]*>/gi, \'\') === \'\')\n                                    $mcbort.addClass(\'empty\');\n\n                                $(\'[role=complementary]\').each(function() {\n                                    var $this = $(this);\n                                    if ($this.children().filter(\':not(.empty)\').filter(\':not(:empty)\').length === 0)\n                                        $this.removeAttr(\'role\');\n                                });\n\n                                if ($(\'.leftcol[role=complementary]\').length > 0 && $(\'#right[role=complementary]\').length > 0) {\n                                    $(\'.leftcol[role=complementary]\').attr(\'aria-label\', \'left column\');\n                                    $(\'#right[role=complementary]\').attr(\'aria-label\', \'right column\');\n                                }\n                            })();\n                        </script><div id="skip-to-content"></div><div id="center" role="main"><div class="mobile-content-top" data-set="content-top"></div><div class="par parsys"><div class="title section"><h1 id="title">Graduate Students</h1></div><div class="image-container image-container-680"><div class="image border-show"><picture><source media="(max-width: 568px)" srcset="/content/cas/math/people/grad-directory/jcr:content/par/image.img.448.auto.q50.jpg/1460655962154.jpg, /content/cas/math/people/grad-directory/jcr:content/par/image.img.576.auto.q50.jpg/1460655962154.jpg 2x"><source media="(max-width: 720px)" srcset="/content/cas/math/people/grad-directory/jcr:content/par/image.img.688.auto.q80.jpg/1460655962154.jpg"><img alt="UB Strong" width="680" class="img-680 cq-dd-image" src="/content/cas/math/people/grad-directory/_jcr_content/par/image.img.680.auto.jpg/1460655962154.jpg"></picture></div></div><div class="title section"><h2 id="top">Mathematics Graduate Student Directory 2017-2018</h2></div><div class="introtext text parbase section"><p><a href="#letter_a">A</a> | <a href="#letter_b">B</a> | <a href="#letter_c">C</a> | <a href="#letter_d">D</a> | E | <a href="#letter_f">F</a> | <a href="#letter_g">G</a> | <a href="#letter_h">H</a> | I | <a href="#letter_j">J</a> | <a href="#letter_h">K</a> | <a href="#letter_l">L</a> | <a href="#letter_m">M</a> | <a href="#letter_n">N</a> | <a href="#letter_o">O</a> | <a href="#letter_p">P</a> | Q | <a href="#letter_r">R</a> | <a href="#letter_s">S</a> | <a href="#letter_t">T</a> | <a href="#letter_u">U</a> | <a href="#letter_v">V</a> | <a href="#letter_w">W</a> | <a href="#letter_x">X</a> | <a href="#letter_y">Y</a> | <a href="#letter_z">Z</a></p></div><div class="hr section hrline" style="clear:left;"></div><div class="title section"><h2 id="title_3">A</h2></div><div class="text parbase section"><p><b>Abeya Ranasinghe Mudiyanselage, Asela V.</b><br/> Office: 129&nbsp; Phone: 645-8817&nbsp;<br/> Email: aselavir@buffalo.edu<br/></p><p><b>Alegria, Linda</b><br/> Office: 138 Phone: 645-8823<br/> Email: lindaale@buffalo.edu<br/></p></div><div class="hr section hrline" style="clear:left;"></div><div class="title section"><h2 id="letter_b">B</h2></div><div class="text parbase section"><p><b>Bittner, Alyson</b><br/> Office: 130&nbsp;&nbsp;Phone: 645-8818&nbsp;&nbsp;<br/> Email: alysonbi@buffalo.edu</p></div><div class="calltoaction section"><span class="teaser teaser-inline calltoaction-style-small"> <a href="#top"> <span class="teaser-inner"> <span class="teaser-title">back to top</span> </span> </a> </span></div><div class="hr section hrline" style="clear:left;"></div><div class="title section"><h2 id="letter_c">C</h2></div><div class="text parbase section"><p><b>Cain Charles</b><br/> Office: 126 Phone: 645-8816<br/> Email: ccain2@buffalo.edu</p><p><b>Casper, Michael<br/> </b> Office: 222&nbsp; Phone: 645-8779<br/> Email: mjcasper@buffalo.edu</p><p><b>Chang, Hong<br/> </b> Office: 136 Phone: 645-8821<br/> Email: hchang24@buffalo.edu</p><p><b>Chen, Yen-Lin<br/> </b> Office: 125 Phone: 645-8815<br/> Email: yenlinch@buffalo.edu<br/></p><p><b>Cheuk, Ka Yue<br/> </b> Office: 140 Phone: 645-8825<br/> Email: kayueche@buffalo.edu</p><p><b>Chou, Han-Jung<br/> </b> Office:140 Phone: 645-8825<br/> Email: hanjungc@buffalo.edu</p><p><b>Cosgrove, Gage (Makenzie)<br/> </b> Office: 139 Phone: 645-8824<br/> Email: gagecosg@buffalo.edu</p></div><div class="calltoaction section"><span class="teaser teaser-inline calltoaction-style-small"> <a href="#top"> <span class="teaser-inner"> <span class="teaser-title">back to top</span> </span> </a> </span></div><div class="hr section hrline" style="clear:left;"></div><div class="title section"><h2 id="letter_d">D</h2></div><div class="text parbase section"><p><b>Deutsch, Dustin<br/> </b> Office: 140&nbsp; Phone: 645-8825<br/> Email: dustinde@buffalo.edu</p><p><b>Dey, Subhankar</b><br/> Office: 140&nbsp; Phone: 645-8825<br/> Email: subhanka@buffalo.edu</p><p><b>Doga, Hakan</b><br/> Office: 126&nbsp; Phone: 645-8816<br/> Email: hakandog@buffalo.edu</p><p><b>Dong, Sai<br/> </b> Office: 138 Phone: 645-8823<br/> Email: saidong@buffalo.edu</p></div><div class="calltoaction section"><span class="teaser teaser-inline calltoaction-style-small"> <a href="#top"> <span class="teaser-inner"> <span class="teaser-title">back to top</span> </span> </a> </span></div><div class="title section"><h2 id="letter_e">E</h2></div><div class="text parbase section"><p><b>Engelhardt, Carolyn<br/> </b> Office: 132 Phone: 645-8820<br/> Email: cengelha@buffalo.edu<br/></p></div><div class="title section"><h2 id="letter_g">G</h2></div><div class="text parbase section"><p><b>Goswami, Abhishek<br/> </b> Office: 125 Phone: 645-8815<br/> Email: goswami3@buffalo.edu</p><p><b>Gu, Jiaxi</b><br/> Office: 132&nbsp; Phone: 645-8820&nbsp;<br/> Email: jiaxigu@buffalo.edu</p></div><div class="title section"><h2 id="letter_h">H</h2></div><div class="text parbase section"><p><b>Hopfensperger, John</b><br/> Office: 139&nbsp; Phone: 645-8824<br/> Email: johnhopf@buffalo.edu</p><p><b>Hung, Tsz Fun</b><br/> Office: 137&nbsp; Phone: 645-8822<br/> Email: tszfunhu@buffalo.edu</p><p><b>Huynh, Bao<br/> </b> Office: 131 Phone: 645-8819<br/> Email: baohuynh@buffalo.edu</p></div><div class="calltoaction section"><span class="teaser teaser-inline calltoaction-style-small"> <a href="#top"> <span class="teaser-inner"> <span class="teaser-title">back to top</span> </span> </a> </span></div><div class="title section"><h2 id="letter_j">J</h2></div><div class="text parbase section"><p><b>Jeong, Myonggin<br/> </b> Office: 132 Phone: 645-8820<br/> Email: myonggin@buffalo.edu<br/></p><p><b>Jin, Xifeng</b><br/> Office: 137&nbsp; Phone: 645-8822<br/> Email: xifengji@buffalo.edu</p><p><b>Johnson, Megan</b><br/> Office: 132&nbsp; Phone: 645-8820<br/> Email: meganjoh@buffalo.edu</p><p><b>Jones, Raymond</b><br/> Office: 140&nbsp; Phone: 645-8825<br/> Email: rpjones2@buffalo.edu</p></div><div class="title section"><h2 id="letter_k">K</h2></div><div class="text parbase section"><p><b>Kilic, Bengier Ulgen<br/> </b> Office: 125 Phone: 645-8815<br/> Email: bengieru@buffalo.edu</p><p><b>Kim, Jiseong<br/> </b> Office: 125 Phone: 645-8815<br/> Email: jiseongk@buffalo.edu</p><p><b>Kireyev, Dmitri</b><br/> Office: 138&nbsp; Phone: 645-8823<br/> Email: dmitriki@buffalo.edu<br/></p></div><div class="calltoaction section"><span class="teaser teaser-inline calltoaction-style-small"> <a href="#top"> <span class="teaser-inner"> <span class="teaser-title">back to top</span> </span> </a> </span></div><div class="title section"><h2 id="letter_l">L</h2></div><div class="text parbase section"><p><b>Le, Minh Quang</b><br/> Office: 131&nbsp; Phone: 645-8819<br/> Email: minhquan@buffalo.edu<br/></p><p><b>Lin, Wei</b><br/> Office: 313&nbsp; Phone: 645-8827<br/> Email: wlin27@buffalo.edu<br/></p><p><b>Liu, Ruodan</b><br/> Office: 140 Phone: 645-8825<br/> Email: rliu8@buffalo.edu</p><p><b>Liu,Tianmou<br/> </b> Office: 136 Phone: 645-8821<br/> Email: tianmoul@buffalo.edu</p><p><b>Liu, Yuan</b><br/> Office: 140 Phone: 645-8825<br/> Email: yuanliu@buffalo.edu</p><p><b>Lottes, Jonathan</b><br/> Office: 129 Phone: 645-8817<br/> Email: jllottes@buffalo.edu</p><p>&nbsp;</p></div><div class="calltoaction section"><span class="teaser teaser-inline calltoaction-style-small"> <a href="#top"> <span class="teaser-inner"> <span class="teaser-title">back to top</span> </span> </a> </span></div><div class="title section"><h2 id="letter_m">M</h2></div><div class="text parbase section"><p><b>Ma, Ning<br/> </b> Office: 125&nbsp; Phone: 645-8815<br/> Email: nma22@buffalo.edu<br/></p><p><b>Ma, Renda<br/> </b> Office: 125&nbsp; Phone: 645-8815<br/> Email: rendama@buffalo.edu</p><p><b>Ma, Yuqing</b><br/> Office: 138&nbsp; Phone: 645-8823&nbsp;<br/> Email: yuqingma@buffalo.edu</p><p><b>Mandava, Navya<br/> </b> Office: 130&nbsp; Phone: 645-8818<br/> Email: navyatejam@gmail.com</p><p><b>Meng, Lingqi<br/> </b> Office: 130 Phone: 645-8818<br/> Email: lingqime@buffalo.edu</p><p><b>Montoro, Michael<br/> </b> Office: 126&nbsp; Phone: 645-8816<br/> Email: mnmontor@buffalo.edu<br/></p></div><div class="title section"><h2 id="letter_n">N</h2></div><div class="text parbase section"></div><div class="calltoaction section"><span class="teaser teaser-inline calltoaction-style-small"> <a href="#top"> <span class="teaser-inner"> <span class="teaser-title">back to top</span> </span> </a> </span></div><div class="title section"><h2 id="letter_o">O</h2></div><div class="text parbase section"><p><b>Oregero, Jeffrey</b><br/> Office: 129&nbsp; Phone: 645-8817&nbsp;<br/> Email: jaoreger@buffalo.edu</p></div><div class="title section"><h2 id="letter_p">P</h2></div><div class="text parbase section"><p><b>Peng, Jun</b><br/> Office: 139 Phone: 645-8824<b><br/> </b> Email: jpeng3@buffalo.edu<br/></p></div><div class="title section"><h2 id="letter_r">R</h2></div><div class="text parbase section"><p><b>Raico, Pasquale<br/> </b> Office: 140 Phone: 645-8825<br/> Email: ppraico@buffalo.edu</p><p><b>Rozwood, Bud<br/> </b> Office: 125 Phone: 645-8815<b><br/> </b> Email: budrozwo@buffalo.edu</p></div><div class="title section"><h2 id="letter_s">S</h2></div><div class="text parbase section"><p><b>Sailbery, Mitchell</b><br/> Office: 126 Phone: 645-8816<br/> Email: msailsbe@buffalo.edu</p><p><b>Samer, Andrew<br/> </b> Office: 130&nbsp; Phone: 645-8818<br/> Email: agsamer@buffalo.edu</p><p><b>Schilder, Marc</b><br/> Office: 313 Phone: 645-8827<br/> Email: mbschild@buffalo.edu</p><p><b>Schmidt, Matthew</b><br/> Office: 129&nbsp;&nbsp;Phone: 645-8817&nbsp;<br/> Email: mwschmid@buffalo.edu</p><p><b>Shi, Ruonan</b><br/> Office: 139&nbsp; Phone: 645-8824<br/> Email: ruonansh@buffalo.edu</p><p><b>Solanski, Deepisha</b><br/> Office: 140 Phone: 645-8825<br/> Email: deepisha@buffalo.edu</p><p><b>Song, Zhao<br/> </b> Office: 131 Phone: 645-8819<br/> Email: zhaosong@buffalo.edu</p><p><b>Sullivan, Mark</b><br/> Office: 136&nbsp; Phone: 645-8821<br/> Email: marksull@buffalo.edu</p><p><b>Sun, Yuxun</b><br/> Office: 140 Phone: 645-8825<br/> Email: yuxunsun@buffalo.edu</p></div><div class="calltoaction section"><span class="teaser teaser-inline calltoaction-style-small"> <a href="#top"> <span class="teaser-inner"> <span class="teaser-title">back to top</span> </span> </a> </span></div><div class="title section"><h2 id="letter_u">U</h2></div><div class="text parbase section"><p><b>Upadhyay, Aparna</b><br/> Office: 136&nbsp; Phone: 645-8821<br/> Email: aparnaup@buffalo.edu</p></div><div class="title section"><h2 id="letter_w">W</h2></div><div class="text parbase section"><p><b>Wang, Biao<br/> </b> Office: 125 Phone: 645-8815<br/> Email: bwang32@buffalo.edu</p><p><b>Wang, Daxun<br/> </b> Office: 141 Phone: 645-8825<br/> Email: daxunwan@buffalo.edu</p><p><b>Wang, Shiruo<br/> </b> Office: 125 Phone: 645-8815<br/> Email: shiruo@buffalo.edu</p><p><b>Wang, Weiqi<br/> </b> Office: 125 Phone: 645-8815<br/> Email: weiqiwan@buffalo.edu</p><p><b>Winton, Daniel<br/> </b> Office: 125 Phone: 645-8815<br/> Email: dmwinton@buffalo.edu<br/></p></div><div class="calltoaction section"><span class="teaser teaser-inline calltoaction-style-small"> <a href="#top"> <span class="teaser-inner"> <span class="teaser-title">back to top</span> </span> </a> </span></div><div class="title section"><h2 id="letter_y">Y</h2></div><div class="text parbase section"><p><b>Yuan, Cheng</b><br/> Office: 137&nbsp; Phone: 645-8822<br/> Email: chengyua@buffalo.edu</p></div><div class="title section"><h2 id="letter_z">Z</h2></div><div class="text parbase section"><p><b>Zalloum, Abdalrazzaq R.A.<br/> </b><a href="http://www.acsu.buffalo.edu/%7Eabdalraz/" target="_blank">Personal Website</a><br/> Office: 140&nbsp; Phone: 645-8825&nbsp;<br/> Email: abdalraz@buffalo.edu</p><p><b>Zeng, Naijiang</b><br/> Office: 137&nbsp; Phone: 645-8822<br/> Email: naijiang@buffalo.edu</p><p><b>Zhou, Chen</b><br/> Office: 137&nbsp; Phone: 645-8822<br/> Email: czhou5@buffalo.edu</p><p><b>Ziegler, Cameron</b><br/> Office: 140&nbsp; Phone: 645-8825<br/> Email: cz22@buffalo.edu</p></div><div class="calltoaction section"><span class="teaser teaser-inline calltoaction-style-small"> <a href="#top"> <span class="teaser-inner"> <span class="teaser-title">back to top</span> </span> </a> </span></div></div><div class="mobile-content-bottom" data-set="content-bottom"></div><div class="mobile-center-or-right-bottom" data-set="center-or-right-bottom"></div><div class="mobile-center-bottom-or-right-top" data-set="mobile-center-bottom-or-right-top"></div></div></div></div></div></div></div></div></div></div></div></div><footer><div class="footer inheritedreference reference parbase"><div class="footerconfigpage contentpage page"><div class="par parsys"><div class="htmlsnippet section"><div><style type="text/css">\n\n    @only screen and (max-width: 720px){\n    \n        .simplefooter .simplefootercontents > .copyright {\n            clear: both;\n            position: relative;\n            top: 7px;\n        }\n    }\n</style></div></div><div class="fatfooter section"><div class="footer-mode-simple"><a href="//www.buffalo.edu/"> <img class="ub-logo" src="//www.buffalo.edu/v-e541efb31faa2518c910054a542e8044/etc/designs/ubcms/images/fatfooter/ub-logo-two-line.png" alt="University at Buffalo The State University of New York" width="241" height="32"/> </a><div class="footer-columns footer-columns-1"><div class="footer-column footer-column-1"><div class="col1 parsys"><div class="title section"><h2 id="title-1"><a href="/cas/math.html">Department of Mathematics</a></h2></div><div class="text parbase section"><p>244 Mathematics Building<br/> Buffalo, NY 14260-2900<br/> Phone: (716) 645-6284<br/> Fax: (716) 645-5039</p></div><div class="socialbutton section"><a target="_blank" href="https://www.facebook.com/UBMathematics/" class="button facebook"></a></div></div></div></div><div class="copyright"><span class="copy"></span><script>jQuery(".copyright .copy").html("&copy; " + (new Date()).getFullYear());</script>&nbsp;<a href="//www.buffalo.edu/">University at Buffalo</a>. All rights reserved.&nbsp;&nbsp;|&nbsp;&nbsp;<a href="//www.buffalo.edu/administrative-services/policy1/ub-policy-lib/privacy.html">Privacy</a>&nbsp;&nbsp;|&nbsp; <a href="//www.buffalo.edu/access/about-us/contact-us.html">Accessibility</a></div></div></div><div class="htmlsnippet section"><div><!-- Global site tag (gtag.js) - Google Analytics --><script async src="https://www.googletagmanager.com/gtag/js?id=UA-127757988-27"></script><script>\n  window.dataLayer = window.dataLayer || [];\n  function gtag(){dataLayer.push(arguments);}\n  gtag(\'js\', new Date());\n\n  gtag(\'config\', \'UA-127757988-27\');\n</script></div></div></div></div></div></footer></body></html>'
Parse the page:
In [6]:
soup = BeautifulSoup(grads)
Print the page code neatly:
In [7]:
print(soup.prettify())
<!DOCTYPE HTML>
<html class="ubcms-63" lang="en">
 <!-- cmspub04 0404-214918 -->
 <head>
  <meta content="IE=edge" http-equiv="X-UA-Compatible"/>
  <meta content="text/html; charset=utf-8" http-equiv="content-type"/>
  <meta content="width=device-width,initial-scale=1" id="meta-viewport" name="viewport"/>
  <script>
   if (screen.width > 720 && screen.width < 960) document.getElementById('meta-viewport').setAttribute('content','width=960');
  </script>
  <script>
   (function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src='https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);})(window,document,'script','dataLayer','GTM-T5KRRKT');
  </script>
  <title>
   Graduate Students - Department of Mathematics - University at Buffalo
  </title>
  <link href="http://www.buffalo.edu/cas/math/people/grad-directory.html" rel="canonical"/>
  <meta content="2019-02-18" name="date"/>
  <meta content="Graduate Student Directory" name="og:title"/>
  <meta content=" A | B | C | D | E | F | G | H | I | J | K | L | M | N | O | P | Q | R | S | T | U | V | W | X | Y | Z " name="og:description"/>
  <meta content="http://www.buffalo.edu/cas/math/people/grad-directory/_jcr_content/par/image.img.512.auto.jpg/1460655962154.jpg" name="og:image"/>
  <meta content="summary" name="twitter:card"/>
  <link href="//www.buffalo.edu/v-0b46242c87648f90b61a442509e6bc30/etc/designs/ubcms/clientlibs.min.0b46242c87648f90b61a442509e6bc30.css" rel="stylesheet" type="text/css"/>
  <link href="//www.buffalo.edu/v-9cc4b89851550cf5e105d25db85ba3e9/etc/designs/cas/math/css/main.css" rel="stylesheet" type="text/css"/>
  <script src="//www.buffalo.edu/v-a5cfe42345b997301b175d241d0eba88/etc/designs/ubcms/clientlibs.min.a5cfe42345b997301b175d241d0eba88.js" type="text/javascript">
  </script>
  <style type="text/css">
   body.page #page, body.page .page-inner {background-color:#FFFFFF}
  </style>
  <script>
   (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)})(window,document,'script','//www.google-analytics.com/analytics.js','ga');ga('create', 'UA-67291618-1', 'auto');ga('send', 'pageview');
  </script>
  <script type="text/javascript">
   /*<![CDATA[*/
        (function() {
            var sz = document.createElement('script'); sz.type = 'text/javascript'; sz.async = true;
            sz.src = '//siteimproveanalytics.com/js/siteanalyze_75159.js';
            var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(sz, s);
        })();
        /*]]>*/
  </script>
 </head>
 <body class="contentpage page">
  <noscript>
   <iframe height="0" src="https://www.googletagmanager.com/ns.html?id=GTM-T5KRRKT" style="display:none;visibility:hidden" width="0">
   </iframe>
  </noscript>
  <nav aria-label="skip to content">
   <a href="#skip-to-content" id="skip-to-content-link">
    Skip to Content
   </a>
  </nav>
  <div id="page">
   <div class="page-inner">
    <div class="page-inner-1">
     <div class="page-inner-2">
      <div class="page-inner-2a">
      </div>
      <div class="page-inner-3">
       <header>
        <div class="innerheader inheritedreference reference parbase">
         <div class="headerconfigpage contentpage page">
          <div class="par parsys">
           <div class="alertbanner reference parbase section">
            <div class="capdatadisplay">
            </div>
            <script>
             jQuery('.cap-message').detach().insertBefore('#page').wrap('<section aria-label="UB Alert">');
            </script>
           </div>
           <div class="header section">
            <style>
             .innerheader { padding-top: 158px }
            .header { height: 158px }
            .header .main { height: 134px }
            </style>
            <div>
             <div class="top theme-blue" data-set="header-links">
              <ul class="school-links">
               <li>
                <a href="http://arts-sciences.buffalo.edu/">
                 College of Arts and Sciences
                </a>
               </li>
              </ul>
              <ul class="pervasive-links">
               <li>
                <a href="//www.buffalo.edu">
                 UB Home
                </a>
               </li>
               <li>
                <a href="//www.buffalo.edu/maps">
                 Maps
                </a>
               </li>
               <li>
                <a href="//www.buffalo.edu/directory/">
                 UB Directory
                </a>
               </li>
              </ul>
             </div>
             <div class="main theme-blue brand-extension lines-1">
              <div class="lockup">
               <a href="//www.buffalo.edu">
                <i class="icon icon-ub-logo">
                </i>
                <span class="logo">
                 <img alt="University at Buffalo" class="black" height="20" src="//www.buffalo.edu/v-be9166b6b4a1ea7e5771e2eba1d410cf/etc/designs/ubcms/images/header/ub-logo-black.png" width="181"/>
                </span>
               </a>
               <div class="mobile-links" data-set="header-links">
               </div>
               <div class="title">
                <a href="/cas/math.html">
                 Department of Mathematics
                </a>
               </div>
              </div>
              <div class="social" data-set="headersocial">
              </div>
              <div class="tasknav" data-set="tasknav">
               <div class="buttoncomponent sidebyside orange">
                <a href="http://www.buffalo.edu/ub_admissions/apply-now.html" target="_blank">
                 Apply to UB
                </a>
               </div>
               <div class="buttoncomponent sidebyside blue">
                <a href="http://www.buffalo.edu/cas/math/about-us/contact-us.html">
                 Contact Us
                </a>
               </div>
               <div class="buttoncomponent sidebyside green">
                <a href="https://ubfoundation.buffalo.edu/giving/index.php?action=use-parameters&amp;gift_allocation=9351124026" target="_blank">
                 Support UB Math
                </a>
               </div>
              </div>
             </div>
            </div>
           </div>
           <div class="mobilemenu section">
            <!--noindex-->
            <nav aria-label="mobile navigation menu">
             <ul>
              <li class="mobileheader-button-menu" style="display: none">
               <a href="#">
                Menu
               </a>
              </li>
              <li class="mobileheader-button-search" style="display: none">
               <a href="#">
                Search
               </a>
              </li>
             </ul>
            </nav>
            <!--endnoindex-->
            <div class="menu" id="mobile-search">
             <div class="menu-inner" data-set="mobile-search" id="mobile-search-inner">
             </div>
            </div>
            <div class="menu" id="mobile-menu">
             <div class="menu-inner">
              <div id="mobile-menu-inner">
               <div class="loading">
                <!--noindex-->
                Loading menu...
                <!--endnoindex-->
               </div>
              </div>
              <div class="tasknav" data-set="tasknav">
              </div>
              <div class="headersocial" data-set="headersocial">
              </div>
             </div>
            </div>
            <script>
             jQuery('.mobileheader-button-menu').removeAttr('style');
    jQuery(document).ready(function() {
        if ($('.topnav .search .form').length > 0) {
            $('.mobileheader-button-search').removeAttr('style');
        }
    });
    UBCMS.rwd.mobileMenu.load('\/content\/cas\/math\/jcr:content.nav.html', 'http:\/\/www.buffalo.edu\/cas\/math\/people\/grad-directory.html');
            </script>
           </div>
           <div class="topnav section">
            <nav aria-label="site navigation" class="topnav-inner">
             <div class="main">
              <ul class="menu">
               <li class="first theme-secondary theme-putnam-gray">
                <a aria-haspopup="true" href="/cas/math/about-us.html" id="ubcms-gen-1272252722">
                 <span class="container">
                  About
                 </span>
                </a>
                <div aria-labelledby="ubcms-gen-1272252722" class="topnav-submenu-container">
                 <ul class="submenu clearfix">
                  <li class="first">
                   <a aria-label="About:Why Choose Us?" href="/cas/math/about-us/why-choose.html">
                    Why Choose Us?
                   </a>
                  </li>
                  <li>
                   <a aria-label="About:Our Mission" href="/cas/math/about-us/our-mission.html">
                    Our Mission
                   </a>
                  </li>
                  <li>
                   <a aria-label="About:Our Alumni, Students, and Faculty" href="/cas/math/about-us/our-alumni.html">
                    Our Alumni, Students, and Faculty
                   </a>
                   <div class="topnav-submenu-children-container list">
                    <ul class="submenu-children clearfix link-list">
                     <li class="first">
                      <a aria-label="Our Alumni, Students, and Faculty:Our Alumni" href="/cas/math/about-us/our-alumni/our-alumni.html">
                       Our Alumni
                      </a>
                     </li>
                     <li>
                      <a aria-label="Our Alumni, Students, and Faculty:Our Students" href="/cas/math/about-us/our-alumni/our-students.html">
                       Our Students
                      </a>
                     </li>
                     <li class="last">
                      <a aria-label="Our Alumni, Students, and Faculty:Our Faculty" href="/cas/math/about-us/our-alumni/our-faculty.html">
                       Our Faculty
                      </a>
                     </li>
                    </ul>
                   </div>
                  </li>
                  <li>
                   <a aria-label="About:Memberships" href="/cas/math/about-us/memberships.html">
                    Memberships
                   </a>
                   <div class="topnav-submenu-children-container list">
                    <ul class="submenu-children clearfix link-list">
                     <li class="first">
                      <a aria-label="Memberships:American Mathematical Society" href="/cas/math/about-us/memberships/AMS.html">
                       American Mathematical Society
                      </a>
                     </li>
                     <li>
                      <a aria-label="Memberships:Association for Women in Mathematics" href="/cas/math/about-us/memberships/AWM.html">
                       Association for Women in Mathematics
                      </a>
                     </li>
                     <li class="last">
                      <a aria-label="Memberships:Mathematical Sciences Research Institute" href="/cas/math/about-us/memberships/MSRI.html">
                       Mathematical Sciences Research Institute
                      </a>
                     </li>
                    </ul>
                   </div>
                  </li>
                  <li>
                   <a aria-label="About:Community Outreach" href="/cas/math/about-us/community-outreach.html">
                    Community Outreach
                   </a>
                  </li>
                  <li>
                   <a aria-label="About:About the University" href="/cas/math/about-us/about-the-university.html">
                    About the University
                   </a>
                  </li>
                  <li>
                   <a aria-label="About:About Buffalo-Niagara" href="/cas/math/about-us/the-buffalo-niagara-region.html">
                    About Buffalo-Niagara
                   </a>
                  </li>
                  <li class="last">
                   <a aria-label="About:Contact Us" href="/cas/math/about-us/contact-us.html">
                    Contact Us
                   </a>
                  </li>
                 </ul>
                 <div class="relatedLinks relatedlinksreference reference parbase">
                  <div class="nav-related-links">
                   <!--noindex-->
                   <div class="subnav-title">
                    Related Links
                   </div>
                   <!--endnoindex-->
                   <div class="relatedlinkspage unstructuredpage page">
                    <div class="par parsys">
                     <div class="relatedlinks list parbase section">
                      <div id="ubcms-gen-1272252741">
                       <ul class="link-list" data-columnize="1">
                        <li>
                         <span class="teaser teaser-inline">
                          <a href="/cas/math/people/faculty.html">
                           <span class="teaser-inner">
                            <!--noindex-->
                            <span class="teaser-date">
                             9/7/18
                            </span>
                            <!--endnoindex-->
                            <span class="teaser-title">
                             Faculty
                            </span>
                           </span>
                          </a>
                         </span>
                        </li>
                        <li>
                         <span class="teaser teaser-inline">
                          <a href="/cas/math/people/staff_directory.html">
                           <span class="teaser-inner">
                            <!--noindex-->
                            <span class="teaser-date">
                             6/14/17
                            </span>
                            <!--endnoindex-->
                            <span class="teaser-title">
                             Staff
                            </span>
                           </span>
                          </a>
                         </span>
                        </li>
                        <li>
                         <span class="teaser teaser-inline">
                          <a href="/cas/math/people/emeriti.html">
                           <span class="teaser-inner">
                            <!--noindex-->
                            <span class="teaser-date">
                             3/3/18
                            </span>
                            <!--endnoindex-->
                            <span class="teaser-title">
                             Emeriti Faculty
                            </span>
                           </span>
                          </a>
                         </span>
                        </li>
                        <li>
                         <span class="teaser teaser-inline">
                          <a href="/cas/math/people/instructors.html">
                           <span class="teaser-inner">
                            <!--noindex-->
                            <span class="teaser-date">
                             11/21/17
                            </span>
                            <!--endnoindex-->
                            <span class="teaser-title">
                             Instructors
                            </span>
                           </span>
                          </a>
                         </span>
                        </li>
                        <li>
                         <span class="teaser teaser-inline">
                          <a href="/cas/math/people/grad-directory.html">
                           <span class="teaser-inner">
                            <!--noindex-->
                            <span class="teaser-date">
                             2/18/19
                            </span>
                            <!--endnoindex-->
                            <span class="teaser-title">
                             Graduate Student Directory
                            </span>
                           </span>
                          </a>
                         </span>
                        </li>
                        <li>
                         <span class="teaser teaser-inline">
                          <a href="/cas/math/alumni-friends1.html">
                           <span class="teaser-inner">
                            <!--noindex-->
                            <span class="teaser-date">
                             3/26/18
                            </span>
                            <!--endnoindex-->
                            <span class="teaser-title">
                             Alumni
                            </span>
                           </span>
                          </a>
                         </span>
                        </li>
                       </ul>
                      </div>
                      <div class="clearfix">
                      </div>
                     </div>
                    </div>
                   </div>
                  </div>
                 </div>
                </div>
               </li>
               <li class="theme-secondary theme-putnam-gray active-trail">
                <a aria-haspopup="true" href="/cas/math/people.html" id="ubcms-gen-1272252755">
                 <span class="container">
                  People
                 </span>
                </a>
                <div aria-labelledby="ubcms-gen-1272252755" class="topnav-submenu-container">
                 <ul class="submenu clearfix">
                  <li class="first">
                   <a aria-label="People:Faculty" href="/cas/math/people/faculty.html">
                    Faculty
                   </a>
                  </li>
                  <li>
                   <a aria-label="People:Staff" href="/cas/math/people/staff_directory.html">
                    Staff
                   </a>
                  </li>
                  <li>
                   <a aria-label="People:Emeriti Faculty" href="/cas/math/people/emeriti.html">
                    Emeriti Faculty
                   </a>
                  </li>
                  <li>
                   <a aria-label="People:Instructors" href="/cas/math/people/instructors.html">
                    Instructors
                   </a>
                  </li>
                  <li class="active-trail">
                   <a aria-label="People:Graduate Students" class="active" href="/cas/math/people/grad-directory.html">
                    Graduate Students
                   </a>
                  </li>
                  <li class="last">
                   <a aria-label="People:Alumni" href="/cas/math/alumni-friends1.html">
                    Alumni
                   </a>
                  </li>
                 </ul>
                 <div class="relatedLinks relatedlinksreference reference parbase">
                 </div>
                </div>
               </li>
               <li class="theme-secondary theme-putnam-gray">
                <a aria-haspopup="true" href="/cas/math/research.html" id="ubcms-gen-1272252765">
                 <span class="container">
                  Research
                 </span>
                </a>
                <div aria-labelledby="ubcms-gen-1272252765" class="topnav-submenu-container">
                 <ul class="submenu clearfix">
                  <li class="first">
                   <a aria-label="Research:Algebra" href="/cas/math/research/algebra.html">
                    Algebra
                   </a>
                  </li>
                  <li>
                   <a aria-label="Research:Analysis" href="/cas/math/research/analysis.html">
                    Analysis
                   </a>
                  </li>
                  <li>
                   <a aria-label="Research:Applied Mathematics" href="/cas/math/research/applied-mathematics.html">
                    Applied Mathematics
                   </a>
                  </li>
                  <li class="last">
                   <a aria-label="Research:Geometry and Topology " href="/cas/math/research/geometry-topology.html">
                    Geometry and Topology
                   </a>
                  </li>
                 </ul>
                 <div class="relatedLinks relatedlinksreference reference parbase">
                 </div>
                </div>
               </li>
               <li class="theme-secondary theme-putnam-gray">
                <a aria-haspopup="true" href="/cas/math/ug.html" id="ubcms-gen-1272252772">
                 <span class="container">
                  Undergraduate
                 </span>
                </a>
                <div aria-labelledby="ubcms-gen-1272252772" class="topnav-submenu-container">
                 <ul class="submenu clearfix">
                  <li class="first">
                   <a aria-label="Undergraduate:Undergraduate Programs" href="/cas/math/ug/undergraduate-programs.html">
                    Undergraduate Programs
                   </a>
                  </li>
                  <li>
                   <a aria-label="Undergraduate:Undergraduate Research" href="/cas/math/ug/undergraduate-research.html">
                    Undergraduate Research
                   </a>
                  </li>
                  <li>
                   <a aria-label="Undergraduate:Honors, Awards, and Scholarships" href="/cas/math/ug/honors--awards--and-scholarships.html">
                    Honors, Awards, and Scholarships
                   </a>
                  </li>
                  <li>
                   <a aria-label="Undergraduate:Undergraduate Courses" href="/cas/math/ug/ug-courses.html">
                    Undergraduate Courses
                   </a>
                   <div class="topnav-submenu-children-container list">
                    <ul class="submenu-children clearfix link-list">
                     <li class="first last">
                      <a aria-label="Undergraduate Courses:Sample Syllabi" href="/cas/math/ug/ug-courses/syllabi.html">
                       Sample Syllabi
                      </a>
                     </li>
                    </ul>
                   </div>
                  </li>
                  <li>
                   <a aria-label="Undergraduate:Mathematics Help" href="/cas/math/ug/math-help.html">
                    Mathematics Help
                   </a>
                   <div class="topnav-submenu-children-container list">
                    <ul class="submenu-children clearfix link-list">
                     <li class="first last">
                      <a aria-label="Mathematics Help:ALEKS Assessment for MTH 121, 131, 141" href="/cas/math/ug/math-help/aleks.html">
                       ALEKS Assessment for MTH 121, 131, 141
                      </a>
                     </li>
                    </ul>
                   </div>
                  </li>
                  <li class="last">
                   <a aria-label="Undergraduate:Association for Women in Mathematics" href="/cas/math/about-us/memberships/AWM.html">
                    Association for Women in Mathematics
                   </a>
                  </li>
                 </ul>
                 <div class="relatedLinks relatedlinksreference reference parbase">
                 </div>
                </div>
               </li>
               <li class="theme-secondary theme-putnam-gray">
                <a aria-haspopup="true" href="/cas/math/grad.html" id="ubcms-gen-1272252784">
                 <span class="container">
                  Graduate
                 </span>
                </a>
                <div aria-labelledby="ubcms-gen-1272252784" class="topnav-submenu-container">
                 <ul class="submenu clearfix">
                  <li class="first">
                   <a aria-label="Graduate:Master's Program" href="/cas/math/grad/master-program.html">
                    Master's Program
                   </a>
                   <div class="topnav-submenu-children-container list">
                    <ul class="submenu-children clearfix link-list">
                     <li class="first last">
                      <a aria-label="Master's Program:MA Focus in Applied and Interdisciplinary Mathematics" href="/cas/math/grad/master-program/focus.html">
                       MA Focus in Applied and Interdisciplinary Mathematics
                      </a>
                     </li>
                    </ul>
                   </div>
                  </li>
                  <li>
                   <a aria-label="Graduate:Doctoral Program (PhD)" href="/cas/math/grad/doctoral-program.html">
                    Doctoral Program (PhD)
                   </a>
                  </li>
                  <li>
                   <a aria-label="Graduate:Request Information" href="/cas/math/grad/request-information.html">
                    Request Information
                   </a>
                  </li>
                  <li>
                   <a aria-label="Graduate:Admissions" href="/cas/math/grad/grad-admissions.html">
                    Admissions
                   </a>
                  </li>
                  <li>
                   <a aria-label="Graduate:Courses" href="/cas/math/grad/grad-courses.html">
                    Courses
                   </a>
                  </li>
                  <li>
                   <a aria-label="Graduate:Graduate Research" href="/cas/math/grad/grad-research.html">
                    Graduate Research
                   </a>
                  </li>
                  <li>
                   <a aria-label="Graduate:Fellowships, Scholarships, Awards" href="/cas/math/grad/fellowships-awards.html">
                    Fellowships, Scholarships, Awards
                   </a>
                  </li>
                  <li>
                   <a aria-label="Graduate:Association for Women in Mathematics" href="/cas/math/about-us/memberships/AWM.html">
                    Association for Women in Mathematics
                   </a>
                  </li>
                  <li class="last">
                   <a aria-label="Graduate:Graduate Student Directory" href="/cas/math/people/grad-directory.html">
                    Graduate Student Directory
                   </a>
                  </li>
                 </ul>
                 <div class="relatedLinks relatedlinksreference reference parbase">
                 </div>
                </div>
               </li>
               <li class="theme-secondary theme-putnam-gray">
                <a aria-haspopup="true" href="/cas/math/courses.html" id="ubcms-gen-1272252799">
                 <span class="container">
                  Courses
                 </span>
                </a>
               </li>
               <li class="last theme-secondary theme-putnam-gray">
                <a aria-haspopup="true" href="/cas/math/news-events/news.html" id="ubcms-gen-1272252801">
                 <span class="container">
                  News &amp; Events
                 </span>
                </a>
                <div aria-labelledby="ubcms-gen-1272252801" class="topnav-submenu-container">
                 <ul class="submenu clearfix">
                  <li class="first">
                   <a aria-label="News &amp; Events:News" href="/cas/math/news-events/news.html">
                    News
                   </a>
                  </li>
                  <li>
                   <a aria-label="News &amp; Events:Events Calendar" href="/cas/math/news-events/calendar.html">
                    Events Calendar
                   </a>
                  </li>
                  <li>
                   <a aria-label="News &amp; Events:Myhill Lecture Series" href="/cas/math/news-events/myhill.html">
                    Myhill Lecture Series
                   </a>
                   <div class="topnav-submenu-children-container list">
                    <ul class="submenu-children clearfix link-list">
                     <li class="first">
                      <a aria-label="Myhill Lecture Series:Mark Newman, 2018" href="/cas/math/news-events/myhill/mark-newman.html">
                       Mark Newman, 2018
                      </a>
                     </li>
                     <li>
                      <a aria-label="Myhill Lecture Series:Guoliang Yu, 2017" href="/cas/math/news-events/myhill/guoliangyu.html">
                       Guoliang Yu, 2017
                      </a>
                     </li>
                     <li>
                      <a aria-label="Myhill Lecture Series:Gopal Prasad, 2016" href="/cas/math/news-events/myhill/gopal-prasad.html">
                       Gopal Prasad, 2016
                      </a>
                     </li>
                     <li>
                      <a aria-label="Myhill Lecture Series:Ciprian Manolescu, 2015" href="/cas/math/news-events/myhill/ciprian-manolescu.html">
                       Ciprian Manolescu, 2015
                      </a>
                     </li>
                     <li>
                      <a aria-label="Myhill Lecture Series:Percy A. Deift, 2014" href="/cas/math/news-events/myhill/percy-deift.html">
                       Percy A. Deift, 2014
                      </a>
                     </li>
                     <li class="last">
                      <a aria-label="Myhill Lecture Series:Peter Sarnak, 2013" href="/cas/math/news-events/myhill/peter-sarnak.html">
                       Peter Sarnak, 2013
                      </a>
                     </li>
                    </ul>
                   </div>
                  </li>
                  <li>
                   <a aria-label="News &amp; Events:News &amp; Events Archive" href="/cas/math/news-events/archives.html">
                    News &amp; Events Archive
                   </a>
                  </li>
                  <li class="last">
                   <a aria-label="News &amp; Events:Visiting UB" href="/cas/math/news-events/visiting.html">
                    Visiting UB
                   </a>
                  </li>
                 </ul>
                 <div class="relatedLinks relatedlinksreference reference parbase">
                 </div>
                </div>
               </li>
              </ul>
             </div>
             <div class="right">
              <div class="search">
               <!--noindex-->
               <div role="search">
                <div class="label" onmouseenter="jQuery(this).parent().find('input[type=text]').focus().select()">
                 Search
                </div>
                <div class="form" onmouseleave="jQuery(this).parent().find('input[type=text]').blur()">
                 <div class="form-content" data-set="mobile-search">
                  <form action="/cas/math/searchresults.html" method="GET" onsubmit="return this.q.value != ''">
                   <label class="ada-hidden" for="ubcms-gen-1272252823">
                    Search
                   </label>
                   <input autocomplete="off" id="ubcms-gen-1272252823" name="q" onblur="jQuery(this).parents('.form').removeClass('show-search')" onfocus="jQuery(this).parents('.form').addClass('show-search')" placeholder="Search" type="text" value=""/>
                   <i class="icon icon-search">
                   </i>
                   <input onblur="jQuery(this).parents('.form').removeClass('show-search')" onfocus="jQuery(this).parents('.form').addClass('show-search')" type="submit" value="Search"/>
                  </form>
                 </div>
                </div>
               </div>
               <!--endnoindex-->
              </div>
              <div class="audiencenav list parbase">
               <div class="audiencenav-wrapper" tabindex="0">
                <div class="label">
                 Info For
                </div>
                <ul>
                 <li>
                  <a href="/cas/math/information-for-students.html" onblur="jQuery(this).parents('.audiencenav-wrapper').removeClass('hover')" onfocus="jQuery(this).parents('.audiencenav-wrapper').addClass('hover')">
                   Current Students
                  </a>
                 </li>
                 <li>
                  <a href="/cas/math/ug/undergraduate-programs.html" onblur="jQuery(this).parents('.audiencenav-wrapper').removeClass('hover')" onfocus="jQuery(this).parents('.audiencenav-wrapper').addClass('hover')">
                   Future Undergraduate Students
                  </a>
                 </li>
                 <li>
                  <a href="/cas/math/grad.html" onblur="jQuery(this).parents('.audiencenav-wrapper').removeClass('hover')" onfocus="jQuery(this).parents('.audiencenav-wrapper').addClass('hover')">
                   Future Graduate Students
                  </a>
                 </li>
                 <li>
                  <a href="/cas/math/information-for-faculty-staff.html" onblur="jQuery(this).parents('.audiencenav-wrapper').removeClass('hover')" onfocus="jQuery(this).parents('.audiencenav-wrapper').addClass('hover')">
                   Faculty &amp; Staff
                  </a>
                 </li>
                 <li>
                  <a href="/cas/math/alumni-friends1.html" onblur="jQuery(this).parents('.audiencenav-wrapper').removeClass('hover')" onfocus="jQuery(this).parents('.audiencenav-wrapper').addClass('hover')">
                   Alumni &amp; Friends
                  </a>
                 </li>
                </ul>
               </div>
              </div>
             </div>
            </nav>
            <script>
             $(".topnav").accessibleDropDown();
            </script>
           </div>
          </div>
         </div>
        </div>
       </header>
       <div class="two-column clearfix" id="columns">
        <div class="columns-bg columns-bg-1">
         <div class="columns-bg columns-bg-2">
          <div class="columns-bg columns-bg-3">
           <div class="columns-bg columns-bg-4">
            <div id="left">
             <div class="leftnav">
              <nav aria-label="section navigation" class="inner">
               <div class="title">
                <a href="/cas/math/people.html">
                 <span class="title">
                  People
                 </span>
                </a>
               </div>
               <ul class="menu nav-level-1">
                <li class="first">
                 <a aria-label="People:Faculty" href="/cas/math/people/faculty.html">
                  Faculty
                 </a>
                </li>
                <li>
                 <a aria-label="People:Staff" href="/cas/math/people/staff_directory.html">
                  Staff
                 </a>
                </li>
                <li>
                 <a aria-label="People:Emeriti Faculty" href="/cas/math/people/emeriti.html">
                  Emeriti Faculty
                 </a>
                </li>
                <li>
                 <a aria-label="People:Instructors" href="/cas/math/people/instructors.html">
                  Instructors
                 </a>
                </li>
                <li class="active-trail">
                 <span>
                  <a aria-label="People:Graduate Students" class="active" href="/cas/math/people/grad-directory.html">
                   Graduate Students
                  </a>
                 </span>
                </li>
                <li class="last">
                 <a aria-label="People:Alumni" href="/cas/math/alumni-friends1.html">
                  Alumni
                 </a>
                </li>
               </ul>
               <div class="relatedLinks relatedlinksreference reference parbase">
               </div>
              </nav>
             </div>
             <div class="mobile-left-col hide-in-narrow" data-set="mobile-center-bottom-or-right-top">
              <div class="leftcol parsys iparsys" role="complementary">
               <div class="section">
                <div class="new">
                </div>
               </div>
               <div class="iparys_inherited">
                <div class="leftcol iparsys parsys">
                </div>
               </div>
              </div>
             </div>
            </div>
            <script>
             (function() {
                                var $firstLeftIparsysInherited = $('#left .iparys_inherited').eq(0);
                                var $firstLeftIparsysSection = $('#left > .iparsys:first-child > .section:first-child');
                                var $mcbort = $('.mobile-center-bottom-or-right-top');

                                if ($firstLeftIparsysInherited.length && $firstLeftIparsysInherited.html().replace(/\s+|<\/?div\b[^>]*>/gi, '') === '')
                                    $firstLeftIparsysInherited.addClass('empty');
                                
                                if ($firstLeftIparsysSection.length && $firstLeftIparsysSection.html().replace(/\s+|<\/?div\b[^>]*>/gi, '') === '')
                                    $firstLeftIparsysSection.addClass('empty');
                                
                                if ($mcbort.length && $mcbort.html().replace(/\s+|<\/?div\b[^>]*>/gi, '') === '')
                                    $mcbort.addClass('empty');

                                $('[role=complementary]').each(function() {
                                    var $this = $(this);
                                    if ($this.children().filter(':not(.empty)').filter(':not(:empty)').length === 0)
                                        $this.removeAttr('role');
                                });

                                if ($('.leftcol[role=complementary]').length > 0 && $('#right[role=complementary]').length > 0) {
                                    $('.leftcol[role=complementary]').attr('aria-label', 'left column');
                                    $('#right[role=complementary]').attr('aria-label', 'right column');
                                }
                            })();
            </script>
            <div id="skip-to-content">
            </div>
            <div id="center" role="main">
             <div class="mobile-content-top" data-set="content-top">
             </div>
             <div class="par parsys">
              <div class="title section">
               <h1 id="title">
                Graduate Students
               </h1>
              </div>
              <div class="image-container image-container-680">
               <div class="image border-show">
                <picture>
                 <source media="(max-width: 568px)" srcset="/content/cas/math/people/grad-directory/jcr:content/par/image.img.448.auto.q50.jpg/1460655962154.jpg, /content/cas/math/people/grad-directory/jcr:content/par/image.img.576.auto.q50.jpg/1460655962154.jpg 2x">
                  <source media="(max-width: 720px)" srcset="/content/cas/math/people/grad-directory/jcr:content/par/image.img.688.auto.q80.jpg/1460655962154.jpg">
                   <img alt="UB Strong" class="img-680 cq-dd-image" src="/content/cas/math/people/grad-directory/_jcr_content/par/image.img.680.auto.jpg/1460655962154.jpg" width="680"/>
                  </source>
                 </source>
                </picture>
               </div>
              </div>
              <div class="title section">
               <h2 id="top">
                Mathematics Graduate Student Directory 2017-2018
               </h2>
              </div>
              <div class="introtext text parbase section">
               <p>
                <a href="#letter_a">
                 A
                </a>
                |
                <a href="#letter_b">
                 B
                </a>
                |
                <a href="#letter_c">
                 C
                </a>
                |
                <a href="#letter_d">
                 D
                </a>
                | E |
                <a href="#letter_f">
                 F
                </a>
                |
                <a href="#letter_g">
                 G
                </a>
                |
                <a href="#letter_h">
                 H
                </a>
                | I |
                <a href="#letter_j">
                 J
                </a>
                |
                <a href="#letter_h">
                 K
                </a>
                |
                <a href="#letter_l">
                 L
                </a>
                |
                <a href="#letter_m">
                 M
                </a>
                |
                <a href="#letter_n">
                 N
                </a>
                |
                <a href="#letter_o">
                 O
                </a>
                |
                <a href="#letter_p">
                 P
                </a>
                | Q |
                <a href="#letter_r">
                 R
                </a>
                |
                <a href="#letter_s">
                 S
                </a>
                |
                <a href="#letter_t">
                 T
                </a>
                |
                <a href="#letter_u">
                 U
                </a>
                |
                <a href="#letter_v">
                 V
                </a>
                |
                <a href="#letter_w">
                 W
                </a>
                |
                <a href="#letter_x">
                 X
                </a>
                |
                <a href="#letter_y">
                 Y
                </a>
                |
                <a href="#letter_z">
                 Z
                </a>
               </p>
              </div>
              <div class="hr section hrline" style="clear:left;">
              </div>
              <div class="title section">
               <h2 id="title_3">
                A
               </h2>
              </div>
              <div class="text parbase section">
               <p>
                <b>
                 Abeya Ranasinghe Mudiyanselage, Asela V.
                </b>
                <br/>
                Office: 129  Phone: 645-8817
                <br/>
                Email: aselavir@buffalo.edu
                <br/>
               </p>
               <p>
                <b>
                 Alegria, Linda
                </b>
                <br/>
                Office: 138 Phone: 645-8823
                <br/>
                Email: lindaale@buffalo.edu
                <br/>
               </p>
              </div>
              <div class="hr section hrline" style="clear:left;">
              </div>
              <div class="title section">
               <h2 id="letter_b">
                B
               </h2>
              </div>
              <div class="text parbase section">
               <p>
                <b>
                 Bittner, Alyson
                </b>
                <br/>
                Office: 130  Phone: 645-8818
                <br/>
                Email: alysonbi@buffalo.edu
               </p>
              </div>
              <div class="calltoaction section">
               <span class="teaser teaser-inline calltoaction-style-small">
                <a href="#top">
                 <span class="teaser-inner">
                  <span class="teaser-title">
                   back to top
                  </span>
                 </span>
                </a>
               </span>
              </div>
              <div class="hr section hrline" style="clear:left;">
              </div>
              <div class="title section">
               <h2 id="letter_c">
                C
               </h2>
              </div>
              <div class="text parbase section">
               <p>
                <b>
                 Cain Charles
                </b>
                <br/>
                Office: 126 Phone: 645-8816
                <br/>
                Email: ccain2@buffalo.edu
               </p>
               <p>
                <b>
                 Casper, Michael
                 <br/>
                </b>
                Office: 222  Phone: 645-8779
                <br/>
                Email: mjcasper@buffalo.edu
               </p>
               <p>
                <b>
                 Chang, Hong
                 <br/>
                </b>
                Office: 136 Phone: 645-8821
                <br/>
                Email: hchang24@buffalo.edu
               </p>
               <p>
                <b>
                 Chen, Yen-Lin
                 <br/>
                </b>
                Office: 125 Phone: 645-8815
                <br/>
                Email: yenlinch@buffalo.edu
                <br/>
               </p>
               <p>
                <b>
                 Cheuk, Ka Yue
                 <br/>
                </b>
                Office: 140 Phone: 645-8825
                <br/>
                Email: kayueche@buffalo.edu
               </p>
               <p>
                <b>
                 Chou, Han-Jung
                 <br/>
                </b>
                Office:140 Phone: 645-8825
                <br/>
                Email: hanjungc@buffalo.edu
               </p>
               <p>
                <b>
                 Cosgrove, Gage (Makenzie)
                 <br/>
                </b>
                Office: 139 Phone: 645-8824
                <br/>
                Email: gagecosg@buffalo.edu
               </p>
              </div>
              <div class="calltoaction section">
               <span class="teaser teaser-inline calltoaction-style-small">
                <a href="#top">
                 <span class="teaser-inner">
                  <span class="teaser-title">
                   back to top
                  </span>
                 </span>
                </a>
               </span>
              </div>
              <div class="hr section hrline" style="clear:left;">
              </div>
              <div class="title section">
               <h2 id="letter_d">
                D
               </h2>
              </div>
              <div class="text parbase section">
               <p>
                <b>
                 Deutsch, Dustin
                 <br/>
                </b>
                Office: 140  Phone: 645-8825
                <br/>
                Email: dustinde@buffalo.edu
               </p>
               <p>
                <b>
                 Dey, Subhankar
                </b>
                <br/>
                Office: 140  Phone: 645-8825
                <br/>
                Email: subhanka@buffalo.edu
               </p>
               <p>
                <b>
                 Doga, Hakan
                </b>
                <br/>
                Office: 126  Phone: 645-8816
                <br/>
                Email: hakandog@buffalo.edu
               </p>
               <p>
                <b>
                 Dong, Sai
                 <br/>
                </b>
                Office: 138 Phone: 645-8823
                <br/>
                Email: saidong@buffalo.edu
               </p>
              </div>
              <div class="calltoaction section">
               <span class="teaser teaser-inline calltoaction-style-small">
                <a href="#top">
                 <span class="teaser-inner">
                  <span class="teaser-title">
                   back to top
                  </span>
                 </span>
                </a>
               </span>
              </div>
              <div class="title section">
               <h2 id="letter_e">
                E
               </h2>
              </div>
              <div class="text parbase section">
               <p>
                <b>
                 Engelhardt, Carolyn
                 <br/>
                </b>
                Office: 132 Phone: 645-8820
                <br/>
                Email: cengelha@buffalo.edu
                <br/>
               </p>
              </div>
              <div class="title section">
               <h2 id="letter_g">
                G
               </h2>
              </div>
              <div class="text parbase section">
               <p>
                <b>
                 Goswami, Abhishek
                 <br/>
                </b>
                Office: 125 Phone: 645-8815
                <br/>
                Email: goswami3@buffalo.edu
               </p>
               <p>
                <b>
                 Gu, Jiaxi
                </b>
                <br/>
                Office: 132  Phone: 645-8820
                <br/>
                Email: jiaxigu@buffalo.edu
               </p>
              </div>
              <div class="title section">
               <h2 id="letter_h">
                H
               </h2>
              </div>
              <div class="text parbase section">
               <p>
                <b>
                 Hopfensperger, John
                </b>
                <br/>
                Office: 139  Phone: 645-8824
                <br/>
                Email: johnhopf@buffalo.edu
               </p>
               <p>
                <b>
                 Hung, Tsz Fun
                </b>
                <br/>
                Office: 137  Phone: 645-8822
                <br/>
                Email: tszfunhu@buffalo.edu
               </p>
               <p>
                <b>
                 Huynh, Bao
                 <br/>
                </b>
                Office: 131 Phone: 645-8819
                <br/>
                Email: baohuynh@buffalo.edu
               </p>
              </div>
              <div class="calltoaction section">
               <span class="teaser teaser-inline calltoaction-style-small">
                <a href="#top">
                 <span class="teaser-inner">
                  <span class="teaser-title">
                   back to top
                  </span>
                 </span>
                </a>
               </span>
              </div>
              <div class="title section">
               <h2 id="letter_j">
                J
               </h2>
              </div>
              <div class="text parbase section">
               <p>
                <b>
                 Jeong, Myonggin
                 <br/>
                </b>
                Office: 132 Phone: 645-8820
                <br/>
                Email: myonggin@buffalo.edu
                <br/>
               </p>
               <p>
                <b>
                 Jin, Xifeng
                </b>
                <br/>
                Office: 137  Phone: 645-8822
                <br/>
                Email: xifengji@buffalo.edu
               </p>
               <p>
                <b>
                 Johnson, Megan
                </b>
                <br/>
                Office: 132  Phone: 645-8820
                <br/>
                Email: meganjoh@buffalo.edu
               </p>
               <p>
                <b>
                 Jones, Raymond
                </b>
                <br/>
                Office: 140  Phone: 645-8825
                <br/>
                Email: rpjones2@buffalo.edu
               </p>
              </div>
              <div class="title section">
               <h2 id="letter_k">
                K
               </h2>
              </div>
              <div class="text parbase section">
               <p>
                <b>
                 Kilic, Bengier Ulgen
                 <br/>
                </b>
                Office: 125 Phone: 645-8815
                <br/>
                Email: bengieru@buffalo.edu
               </p>
               <p>
                <b>
                 Kim, Jiseong
                 <br/>
                </b>
                Office: 125 Phone: 645-8815
                <br/>
                Email: jiseongk@buffalo.edu
               </p>
               <p>
                <b>
                 Kireyev, Dmitri
                </b>
                <br/>
                Office: 138  Phone: 645-8823
                <br/>
                Email: dmitriki@buffalo.edu
                <br/>
               </p>
              </div>
              <div class="calltoaction section">
               <span class="teaser teaser-inline calltoaction-style-small">
                <a href="#top">
                 <span class="teaser-inner">
                  <span class="teaser-title">
                   back to top
                  </span>
                 </span>
                </a>
               </span>
              </div>
              <div class="title section">
               <h2 id="letter_l">
                L
               </h2>
              </div>
              <div class="text parbase section">
               <p>
                <b>
                 Le, Minh Quang
                </b>
                <br/>
                Office: 131  Phone: 645-8819
                <br/>
                Email: minhquan@buffalo.edu
                <br/>
               </p>
               <p>
                <b>
                 Lin, Wei
                </b>
                <br/>
                Office: 313  Phone: 645-8827
                <br/>
                Email: wlin27@buffalo.edu
                <br/>
               </p>
               <p>
                <b>
                 Liu, Ruodan
                </b>
                <br/>
                Office: 140 Phone: 645-8825
                <br/>
                Email: rliu8@buffalo.edu
               </p>
               <p>
                <b>
                 Liu,Tianmou
                 <br/>
                </b>
                Office: 136 Phone: 645-8821
                <br/>
                Email: tianmoul@buffalo.edu
               </p>
               <p>
                <b>
                 Liu, Yuan
                </b>
                <br/>
                Office: 140 Phone: 645-8825
                <br/>
                Email: yuanliu@buffalo.edu
               </p>
               <p>
                <b>
                 Lottes, Jonathan
                </b>
                <br/>
                Office: 129 Phone: 645-8817
                <br/>
                Email: jllottes@buffalo.edu
               </p>
               <p>
               </p>
              </div>
              <div class="calltoaction section">
               <span class="teaser teaser-inline calltoaction-style-small">
                <a href="#top">
                 <span class="teaser-inner">
                  <span class="teaser-title">
                   back to top
                  </span>
                 </span>
                </a>
               </span>
              </div>
              <div class="title section">
               <h2 id="letter_m">
                M
               </h2>
              </div>
              <div class="text parbase section">
               <p>
                <b>
                 Ma, Ning
                 <br/>
                </b>
                Office: 125  Phone: 645-8815
                <br/>
                Email: nma22@buffalo.edu
                <br/>
               </p>
               <p>
                <b>
                 Ma, Renda
                 <br/>
                </b>
                Office: 125  Phone: 645-8815
                <br/>
                Email: rendama@buffalo.edu
               </p>
               <p>
                <b>
                 Ma, Yuqing
                </b>
                <br/>
                Office: 138  Phone: 645-8823
                <br/>
                Email: yuqingma@buffalo.edu
               </p>
               <p>
                <b>
                 Mandava, Navya
                 <br/>
                </b>
                Office: 130  Phone: 645-8818
                <br/>
                Email: navyatejam@gmail.com
               </p>
               <p>
                <b>
                 Meng, Lingqi
                 <br/>
                </b>
                Office: 130 Phone: 645-8818
                <br/>
                Email: lingqime@buffalo.edu
               </p>
               <p>
                <b>
                 Montoro, Michael
                 <br/>
                </b>
                Office: 126  Phone: 645-8816
                <br/>
                Email: mnmontor@buffalo.edu
                <br/>
               </p>
              </div>
              <div class="title section">
               <h2 id="letter_n">
                N
               </h2>
              </div>
              <div class="text parbase section">
              </div>
              <div class="calltoaction section">
               <span class="teaser teaser-inline calltoaction-style-small">
                <a href="#top">
                 <span class="teaser-inner">
                  <span class="teaser-title">
                   back to top
                  </span>
                 </span>
                </a>
               </span>
              </div>
              <div class="title section">
               <h2 id="letter_o">
                O
               </h2>
              </div>
              <div class="text parbase section">
               <p>
                <b>
                 Oregero, Jeffrey
                </b>
                <br/>
                Office: 129  Phone: 645-8817
                <br/>
                Email: jaoreger@buffalo.edu
               </p>
              </div>
              <div class="title section">
               <h2 id="letter_p">
                P
               </h2>
              </div>
              <div class="text parbase section">
               <p>
                <b>
                 Peng, Jun
                </b>
                <br/>
                Office: 139 Phone: 645-8824
                <b>
                 <br/>
                </b>
                Email: jpeng3@buffalo.edu
                <br/>
               </p>
              </div>
              <div class="title section">
               <h2 id="letter_r">
                R
               </h2>
              </div>
              <div class="text parbase section">
               <p>
                <b>
                 Raico, Pasquale
                 <br/>
                </b>
                Office: 140 Phone: 645-8825
                <br/>
                Email: ppraico@buffalo.edu
               </p>
               <p>
                <b>
                 Rozwood, Bud
                 <br/>
                </b>
                Office: 125 Phone: 645-8815
                <b>
                 <br/>
                </b>
                Email: budrozwo@buffalo.edu
               </p>
              </div>
              <div class="title section">
               <h2 id="letter_s">
                S
               </h2>
              </div>
              <div class="text parbase section">
               <p>
                <b>
                 Sailbery, Mitchell
                </b>
                <br/>
                Office: 126 Phone: 645-8816
                <br/>
                Email: msailsbe@buffalo.edu
               </p>
               <p>
                <b>
                 Samer, Andrew
                 <br/>
                </b>
                Office: 130  Phone: 645-8818
                <br/>
                Email: agsamer@buffalo.edu
               </p>
               <p>
                <b>
                 Schilder, Marc
                </b>
                <br/>
                Office: 313 Phone: 645-8827
                <br/>
                Email: mbschild@buffalo.edu
               </p>
               <p>
                <b>
                 Schmidt, Matthew
                </b>
                <br/>
                Office: 129  Phone: 645-8817
                <br/>
                Email: mwschmid@buffalo.edu
               </p>
               <p>
                <b>
                 Shi, Ruonan
                </b>
                <br/>
                Office: 139  Phone: 645-8824
                <br/>
                Email: ruonansh@buffalo.edu
               </p>
               <p>
                <b>
                 Solanski, Deepisha
                </b>
                <br/>
                Office: 140 Phone: 645-8825
                <br/>
                Email: deepisha@buffalo.edu
               </p>
               <p>
                <b>
                 Song, Zhao
                 <br/>
                </b>
                Office: 131 Phone: 645-8819
                <br/>
                Email: zhaosong@buffalo.edu
               </p>
               <p>
                <b>
                 Sullivan, Mark
                </b>
                <br/>
                Office: 136  Phone: 645-8821
                <br/>
                Email: marksull@buffalo.edu
               </p>
               <p>
                <b>
                 Sun, Yuxun
                </b>
                <br/>
                Office: 140 Phone: 645-8825
                <br/>
                Email: yuxunsun@buffalo.edu
               </p>
              </div>
              <div class="calltoaction section">
               <span class="teaser teaser-inline calltoaction-style-small">
                <a href="#top">
                 <span class="teaser-inner">
                  <span class="teaser-title">
                   back to top
                  </span>
                 </span>
                </a>
               </span>
              </div>
              <div class="title section">
               <h2 id="letter_u">
                U
               </h2>
              </div>
              <div class="text parbase section">
               <p>
                <b>
                 Upadhyay, Aparna
                </b>
                <br/>
                Office: 136  Phone: 645-8821
                <br/>
                Email: aparnaup@buffalo.edu
               </p>
              </div>
              <div class="title section">
               <h2 id="letter_w">
                W
               </h2>
              </div>
              <div class="text parbase section">
               <p>
                <b>
                 Wang, Biao
                 <br/>
                </b>
                Office: 125 Phone: 645-8815
                <br/>
                Email: bwang32@buffalo.edu
               </p>
               <p>
                <b>
                 Wang, Daxun
                 <br/>
                </b>
                Office: 141 Phone: 645-8825
                <br/>
                Email: daxunwan@buffalo.edu
               </p>
               <p>
                <b>
                 Wang, Shiruo
                 <br/>
                </b>
                Office: 125 Phone: 645-8815
                <br/>
                Email: shiruo@buffalo.edu
               </p>
               <p>
                <b>
                 Wang, Weiqi
                 <br/>
                </b>
                Office: 125 Phone: 645-8815
                <br/>
                Email: weiqiwan@buffalo.edu
               </p>
               <p>
                <b>
                 Winton, Daniel
                 <br/>
                </b>
                Office: 125 Phone: 645-8815
                <br/>
                Email: dmwinton@buffalo.edu
                <br/>
               </p>
              </div>
              <div class="calltoaction section">
               <span class="teaser teaser-inline calltoaction-style-small">
                <a href="#top">
                 <span class="teaser-inner">
                  <span class="teaser-title">
                   back to top
                  </span>
                 </span>
                </a>
               </span>
              </div>
              <div class="title section">
               <h2 id="letter_y">
                Y
               </h2>
              </div>
              <div class="text parbase section">
               <p>
                <b>
                 Yuan, Cheng
                </b>
                <br/>
                Office: 137  Phone: 645-8822
                <br/>
                Email: chengyua@buffalo.edu
               </p>
              </div>
              <div class="title section">
               <h2 id="letter_z">
                Z
               </h2>
              </div>
              <div class="text parbase section">
               <p>
                <b>
                 Zalloum, Abdalrazzaq R.A.
                 <br/>
                </b>
                <a href="http://www.acsu.buffalo.edu/%7Eabdalraz/" target="_blank">
                 Personal Website
                </a>
                <br/>
                Office: 140  Phone: 645-8825
                <br/>
                Email: abdalraz@buffalo.edu
               </p>
               <p>
                <b>
                 Zeng, Naijiang
                </b>
                <br/>
                Office: 137  Phone: 645-8822
                <br/>
                Email: naijiang@buffalo.edu
               </p>
               <p>
                <b>
                 Zhou, Chen
                </b>
                <br/>
                Office: 137  Phone: 645-8822
                <br/>
                Email: czhou5@buffalo.edu
               </p>
               <p>
                <b>
                 Ziegler, Cameron
                </b>
                <br/>
                Office: 140  Phone: 645-8825
                <br/>
                Email: cz22@buffalo.edu
               </p>
              </div>
              <div class="calltoaction section">
               <span class="teaser teaser-inline calltoaction-style-small">
                <a href="#top">
                 <span class="teaser-inner">
                  <span class="teaser-title">
                   back to top
                  </span>
                 </span>
                </a>
               </span>
              </div>
             </div>
             <div class="mobile-content-bottom" data-set="content-bottom">
             </div>
             <div class="mobile-center-or-right-bottom" data-set="center-or-right-bottom">
             </div>
             <div class="mobile-center-bottom-or-right-top" data-set="mobile-center-bottom-or-right-top">
             </div>
            </div>
           </div>
          </div>
         </div>
        </div>
       </div>
      </div>
     </div>
    </div>
   </div>
  </div>
  <footer>
   <div class="footer inheritedreference reference parbase">
    <div class="footerconfigpage contentpage page">
     <div class="par parsys">
      <div class="htmlsnippet section">
       <div>
        <style type="text/css">
         @only screen and (max-width: 720px){
    
        .simplefooter .simplefootercontents > .copyright {
            clear: both;
            position: relative;
            top: 7px;
        }
    }
        </style>
       </div>
      </div>
      <div class="fatfooter section">
       <div class="footer-mode-simple">
        <a href="//www.buffalo.edu/">
         <img alt="University at Buffalo The State University of New York" class="ub-logo" height="32" src="//www.buffalo.edu/v-e541efb31faa2518c910054a542e8044/etc/designs/ubcms/images/fatfooter/ub-logo-two-line.png" width="241"/>
        </a>
        <div class="footer-columns footer-columns-1">
         <div class="footer-column footer-column-1">
          <div class="col1 parsys">
           <div class="title section">
            <h2 id="title-1">
             <a href="/cas/math.html">
              Department of Mathematics
             </a>
            </h2>
           </div>
           <div class="text parbase section">
            <p>
             244 Mathematics Building
             <br/>
             Buffalo, NY 14260-2900
             <br/>
             Phone: (716) 645-6284
             <br/>
             Fax: (716) 645-5039
            </p>
           </div>
          </div>
         </div>
        </div>
        <div class="copyright">
         <span class="copy">
         </span>
         <script>
          jQuery(".copyright .copy").html("&copy; " + (new Date()).getFullYear());
         </script>
         <a href="//www.buffalo.edu/">
          University at Buffalo
         </a>
         . All rights reserved.  |
         <a href="//www.buffalo.edu/administrative-services/policy1/ub-policy-lib/privacy.html">
          Privacy
         </a>
         |
         <a href="//www.buffalo.edu/access/about-us/contact-us.html">
          Accessibility
         </a>
        </div>
       </div>
      </div>
      <div class="htmlsnippet section">
       <div>
        <!-- Global site tag (gtag.js) - Google Analytics -->
        <script async="" src="https://www.googletagmanager.com/gtag/js?id=UA-127757988-27">
        </script>
        <script>
         window.dataLayer = window.dataLayer || [];
  function gtag(){dataLayer.push(arguments);}
  gtag('js', new Date());

  gtag('config', 'UA-127757988-27');
        </script>
       </div>
      </div>
     </div>
    </div>
   </div>
  </footer>
 </body>
</html>
Find all HTML <p>...</p> tags:
In [10]:
ptags = soup.find_all('p')
ptags
Out[10]:
[<p><a href="#letter_a">A</a> | <a href="#letter_b">B</a> | <a href="#letter_c">C</a> | <a href="#letter_d">D</a> | E | <a href="#letter_f">F</a> | <a href="#letter_g">G</a> | <a href="#letter_h">H</a> | I | <a href="#letter_j">J</a> | <a href="#letter_h">K</a> | <a href="#letter_l">L</a> | <a href="#letter_m">M</a> | <a href="#letter_n">N</a> | <a href="#letter_o">O</a> | <a href="#letter_p">P</a> | Q | <a href="#letter_r">R</a> | <a href="#letter_s">S</a> | <a href="#letter_t">T</a> | <a href="#letter_u">U</a> | <a href="#letter_v">V</a> | <a href="#letter_w">W</a> | <a href="#letter_x">X</a> | <a href="#letter_y">Y</a> | <a href="#letter_z">Z</a></p>,
 <p><b>Abeya Ranasinghe Mudiyanselage, Asela V.</b><br/> Office: 129  Phone: 645-8817 <br/> Email: aselavir@buffalo.edu<br/></p>,
 <p><b>Alegria, Linda</b><br/> Office: 138 Phone: 645-8823<br/> Email: lindaale@buffalo.edu<br/></p>,
 <p><b>Bittner, Alyson</b><br/> Office: 130  Phone: 645-8818  <br/> Email: alysonbi@buffalo.edu</p>,
 <p><b>Cain Charles</b><br/> Office: 126 Phone: 645-8816<br/> Email: ccain2@buffalo.edu</p>,
 <p><b>Casper, Michael<br/> </b> Office: 222  Phone: 645-8779<br/> Email: mjcasper@buffalo.edu</p>,
 <p><b>Chang, Hong<br/> </b> Office: 136 Phone: 645-8821<br/> Email: hchang24@buffalo.edu</p>,
 <p><b>Chen, Yen-Lin<br/> </b> Office: 125 Phone: 645-8815<br/> Email: yenlinch@buffalo.edu<br/></p>,
 <p><b>Cheuk, Ka Yue<br/> </b> Office: 140 Phone: 645-8825<br/> Email: kayueche@buffalo.edu</p>,
 <p><b>Chou, Han-Jung<br/> </b> Office:140 Phone: 645-8825<br/> Email: hanjungc@buffalo.edu</p>,
 <p><b>Cosgrove, Gage (Makenzie)<br/> </b> Office: 139 Phone: 645-8824<br/> Email: gagecosg@buffalo.edu</p>,
 <p><b>Deutsch, Dustin<br/> </b> Office: 140  Phone: 645-8825<br/> Email: dustinde@buffalo.edu</p>,
 <p><b>Dey, Subhankar</b><br/> Office: 140  Phone: 645-8825<br/> Email: subhanka@buffalo.edu</p>,
 <p><b>Doga, Hakan</b><br/> Office: 126  Phone: 645-8816<br/> Email: hakandog@buffalo.edu</p>,
 <p><b>Dong, Sai<br/> </b> Office: 138 Phone: 645-8823<br/> Email: saidong@buffalo.edu</p>,
 <p><b>Engelhardt, Carolyn<br/> </b> Office: 132 Phone: 645-8820<br/> Email: cengelha@buffalo.edu<br/></p>,
 <p><b>Goswami, Abhishek<br/> </b> Office: 125 Phone: 645-8815<br/> Email: goswami3@buffalo.edu</p>,
 <p><b>Gu, Jiaxi</b><br/> Office: 132  Phone: 645-8820 <br/> Email: jiaxigu@buffalo.edu</p>,
 <p><b>Hopfensperger, John</b><br/> Office: 139  Phone: 645-8824<br/> Email: johnhopf@buffalo.edu</p>,
 <p><b>Hung, Tsz Fun</b><br/> Office: 137  Phone: 645-8822<br/> Email: tszfunhu@buffalo.edu</p>,
 <p><b>Huynh, Bao<br/> </b> Office: 131 Phone: 645-8819<br/> Email: baohuynh@buffalo.edu</p>,
 <p><b>Jeong, Myonggin<br/> </b> Office: 132 Phone: 645-8820<br/> Email: myonggin@buffalo.edu<br/></p>,
 <p><b>Jin, Xifeng</b><br/> Office: 137  Phone: 645-8822<br/> Email: xifengji@buffalo.edu</p>,
 <p><b>Johnson, Megan</b><br/> Office: 132  Phone: 645-8820<br/> Email: meganjoh@buffalo.edu</p>,
 <p><b>Jones, Raymond</b><br/> Office: 140  Phone: 645-8825<br/> Email: rpjones2@buffalo.edu</p>,
 <p><b>Kilic, Bengier Ulgen<br/> </b> Office: 125 Phone: 645-8815<br/> Email: bengieru@buffalo.edu</p>,
 <p><b>Kim, Jiseong<br/> </b> Office: 125 Phone: 645-8815<br/> Email: jiseongk@buffalo.edu</p>,
 <p><b>Kireyev, Dmitri</b><br/> Office: 138  Phone: 645-8823<br/> Email: dmitriki@buffalo.edu<br/></p>,
 <p><b>Le, Minh Quang</b><br/> Office: 131  Phone: 645-8819<br/> Email: minhquan@buffalo.edu<br/></p>,
 <p><b>Lin, Wei</b><br/> Office: 313  Phone: 645-8827<br/> Email: wlin27@buffalo.edu<br/></p>,
 <p><b>Liu, Ruodan</b><br/> Office: 140 Phone: 645-8825<br/> Email: rliu8@buffalo.edu</p>,
 <p><b>Liu,Tianmou<br/> </b> Office: 136 Phone: 645-8821<br/> Email: tianmoul@buffalo.edu</p>,
 <p><b>Liu, Yuan</b><br/> Office: 140 Phone: 645-8825<br/> Email: yuanliu@buffalo.edu</p>,
 <p><b>Lottes, Jonathan</b><br/> Office: 129 Phone: 645-8817<br/> Email: jllottes@buffalo.edu</p>,
 <p> </p>,
 <p><b>Ma, Ning<br/> </b> Office: 125  Phone: 645-8815<br/> Email: nma22@buffalo.edu<br/></p>,
 <p><b>Ma, Renda<br/> </b> Office: 125  Phone: 645-8815<br/> Email: rendama@buffalo.edu</p>,
 <p><b>Ma, Yuqing</b><br/> Office: 138  Phone: 645-8823 <br/> Email: yuqingma@buffalo.edu</p>,
 <p><b>Mandava, Navya<br/> </b> Office: 130  Phone: 645-8818<br/> Email: navyatejam@gmail.com</p>,
 <p><b>Meng, Lingqi<br/> </b> Office: 130 Phone: 645-8818<br/> Email: lingqime@buffalo.edu</p>,
 <p><b>Montoro, Michael<br/> </b> Office: 126  Phone: 645-8816<br/> Email: mnmontor@buffalo.edu<br/></p>,
 <p><b>Oregero, Jeffrey</b><br/> Office: 129  Phone: 645-8817 <br/> Email: jaoreger@buffalo.edu</p>,
 <p><b>Peng, Jun</b><br/> Office: 139 Phone: 645-8824<b><br/> </b> Email: jpeng3@buffalo.edu<br/></p>,
 <p><b>Raico, Pasquale<br/> </b> Office: 140 Phone: 645-8825<br/> Email: ppraico@buffalo.edu</p>,
 <p><b>Rozwood, Bud<br/> </b> Office: 125 Phone: 645-8815<b><br/> </b> Email: budrozwo@buffalo.edu</p>,
 <p><b>Sailbery, Mitchell</b><br/> Office: 126 Phone: 645-8816<br/> Email: msailsbe@buffalo.edu</p>,
 <p><b>Samer, Andrew<br/> </b> Office: 130  Phone: 645-8818<br/> Email: agsamer@buffalo.edu</p>,
 <p><b>Schilder, Marc</b><br/> Office: 313 Phone: 645-8827<br/> Email: mbschild@buffalo.edu</p>,
 <p><b>Schmidt, Matthew</b><br/> Office: 129  Phone: 645-8817 <br/> Email: mwschmid@buffalo.edu</p>,
 <p><b>Shi, Ruonan</b><br/> Office: 139  Phone: 645-8824<br/> Email: ruonansh@buffalo.edu</p>,
 <p><b>Solanski, Deepisha</b><br/> Office: 140 Phone: 645-8825<br/> Email: deepisha@buffalo.edu</p>,
 <p><b>Song, Zhao<br/> </b> Office: 131 Phone: 645-8819<br/> Email: zhaosong@buffalo.edu</p>,
 <p><b>Sullivan, Mark</b><br/> Office: 136  Phone: 645-8821<br/> Email: marksull@buffalo.edu</p>,
 <p><b>Sun, Yuxun</b><br/> Office: 140 Phone: 645-8825<br/> Email: yuxunsun@buffalo.edu</p>,
 <p><b>Upadhyay, Aparna</b><br/> Office: 136  Phone: 645-8821<br/> Email: aparnaup@buffalo.edu</p>,
 <p><b>Wang, Biao<br/> </b> Office: 125 Phone: 645-8815<br/> Email: bwang32@buffalo.edu</p>,
 <p><b>Wang, Daxun<br/> </b> Office: 141 Phone: 645-8825<br/> Email: daxunwan@buffalo.edu</p>,
 <p><b>Wang, Shiruo<br/> </b> Office: 125 Phone: 645-8815<br/> Email: shiruo@buffalo.edu</p>,
 <p><b>Wang, Weiqi<br/> </b> Office: 125 Phone: 645-8815<br/> Email: weiqiwan@buffalo.edu</p>,
 <p><b>Winton, Daniel<br/> </b> Office: 125 Phone: 645-8815<br/> Email: dmwinton@buffalo.edu<br/></p>,
 <p><b>Yuan, Cheng</b><br/> Office: 137  Phone: 645-8822<br/> Email: chengyua@buffalo.edu</p>,
 <p><b>Zalloum, Abdalrazzaq R.A.<br/> </b><a href="http://www.acsu.buffalo.edu/%7Eabdalraz/" target="_blank">Personal Website</a><br/> Office: 140  Phone: 645-8825 <br/> Email: abdalraz@buffalo.edu</p>,
 <p><b>Zeng, Naijiang</b><br/> Office: 137  Phone: 645-8822<br/> Email: naijiang@buffalo.edu</p>,
 <p><b>Zhou, Chen</b><br/> Office: 137  Phone: 645-8822<br/> Email: czhou5@buffalo.edu</p>,
 <p><b>Ziegler, Cameron</b><br/> Office: 140  Phone: 645-8825<br/> Email: cz22@buffalo.edu</p>,
 <p>244 Mathematics Building<br/> Buffalo, NY 14260-2900<br/> Phone: (716) 645-6284<br/> Fax: (716) 645-5039</p>]

The get_text() method returns text enclosed in a tag.

In [13]:
ptags[1]
Out[13]:
<p><b>Abeya Ranasinghe Mudiyanselage, Asela V.</b><br/> Office: 129  Phone: 645-8817 <br/> Email: aselavir@buffalo.edu<br/></p>
In [14]:
ptags[1].get_text()
Out[14]:
'Abeya Ranasinghe Mudiyanselage, Asela V. Office: 129\xa0 Phone: 645-8817\xa0 Email: aselavir@buffalo.edu'
Get text from all paragraphs containing the word "Office":
In [11]:
grad_list = [t.get_text() for t in ptags if "Office" in t.get_text()]
grad_list
Out[11]:
['Abeya Ranasinghe Mudiyanselage, Asela V. Office: 129\xa0 Phone: 645-8817\xa0 Email: aselavir@buffalo.edu',
 'Alegria, Linda Office: 138 Phone: 645-8823 Email: lindaale@buffalo.edu',
 'Bittner, Alyson Office: 130\xa0\xa0Phone: 645-8818\xa0\xa0 Email: alysonbi@buffalo.edu',
 'Cain Charles Office: 126 Phone: 645-8816 Email: ccain2@buffalo.edu',
 'Casper, Michael  Office: 222\xa0 Phone: 645-8779 Email: mjcasper@buffalo.edu',
 'Chang, Hong  Office: 136 Phone: 645-8821 Email: hchang24@buffalo.edu',
 'Chen, Yen-Lin  Office: 125 Phone: 645-8815 Email: yenlinch@buffalo.edu',
 'Cheuk, Ka Yue  Office: 140 Phone: 645-8825 Email: kayueche@buffalo.edu',
 'Chou, Han-Jung  Office:140 Phone: 645-8825 Email: hanjungc@buffalo.edu',
 'Cosgrove, Gage (Makenzie)  Office: 139 Phone: 645-8824 Email: gagecosg@buffalo.edu',
 'Deutsch, Dustin  Office: 140\xa0 Phone: 645-8825 Email: dustinde@buffalo.edu',
 'Dey, Subhankar Office: 140\xa0 Phone: 645-8825 Email: subhanka@buffalo.edu',
 'Doga, Hakan Office: 126\xa0 Phone: 645-8816 Email: hakandog@buffalo.edu',
 'Dong, Sai  Office: 138 Phone: 645-8823 Email: saidong@buffalo.edu',
 'Engelhardt, Carolyn  Office: 132 Phone: 645-8820 Email: cengelha@buffalo.edu',
 'Goswami, Abhishek  Office: 125 Phone: 645-8815 Email: goswami3@buffalo.edu',
 'Gu, Jiaxi Office: 132\xa0 Phone: 645-8820\xa0 Email: jiaxigu@buffalo.edu',
 'Hopfensperger, John Office: 139\xa0 Phone: 645-8824 Email: johnhopf@buffalo.edu',
 'Hung, Tsz Fun Office: 137\xa0 Phone: 645-8822 Email: tszfunhu@buffalo.edu',
 'Huynh, Bao  Office: 131 Phone: 645-8819 Email: baohuynh@buffalo.edu',
 'Jeong, Myonggin  Office: 132 Phone: 645-8820 Email: myonggin@buffalo.edu',
 'Jin, Xifeng Office: 137\xa0 Phone: 645-8822 Email: xifengji@buffalo.edu',
 'Johnson, Megan Office: 132\xa0 Phone: 645-8820 Email: meganjoh@buffalo.edu',
 'Jones, Raymond Office: 140\xa0 Phone: 645-8825 Email: rpjones2@buffalo.edu',
 'Kilic, Bengier Ulgen  Office: 125 Phone: 645-8815 Email: bengieru@buffalo.edu',
 'Kim, Jiseong  Office: 125 Phone: 645-8815 Email: jiseongk@buffalo.edu',
 'Kireyev, Dmitri Office: 138\xa0 Phone: 645-8823 Email: dmitriki@buffalo.edu',
 'Le, Minh Quang Office: 131\xa0 Phone: 645-8819 Email: minhquan@buffalo.edu',
 'Lin, Wei Office: 313\xa0 Phone: 645-8827 Email: wlin27@buffalo.edu',
 'Liu, Ruodan Office: 140 Phone: 645-8825 Email: rliu8@buffalo.edu',
 'Liu,Tianmou  Office: 136 Phone: 645-8821 Email: tianmoul@buffalo.edu',
 'Liu, Yuan Office: 140 Phone: 645-8825 Email: yuanliu@buffalo.edu',
 'Lottes, Jonathan Office: 129 Phone: 645-8817 Email: jllottes@buffalo.edu',
 'Ma, Ning  Office: 125\xa0 Phone: 645-8815 Email: nma22@buffalo.edu',
 'Ma, Renda  Office: 125\xa0 Phone: 645-8815 Email: rendama@buffalo.edu',
 'Ma, Yuqing Office: 138\xa0 Phone: 645-8823\xa0 Email: yuqingma@buffalo.edu',
 'Mandava, Navya  Office: 130\xa0 Phone: 645-8818 Email: navyatejam@gmail.com',
 'Meng, Lingqi  Office: 130 Phone: 645-8818 Email: lingqime@buffalo.edu',
 'Montoro, Michael  Office: 126\xa0 Phone: 645-8816 Email: mnmontor@buffalo.edu',
 'Oregero, Jeffrey Office: 129\xa0 Phone: 645-8817\xa0 Email: jaoreger@buffalo.edu',
 'Peng, Jun Office: 139 Phone: 645-8824  Email: jpeng3@buffalo.edu',
 'Raico, Pasquale  Office: 140 Phone: 645-8825 Email: ppraico@buffalo.edu',
 'Rozwood, Bud  Office: 125 Phone: 645-8815  Email: budrozwo@buffalo.edu',
 'Sailbery, Mitchell Office: 126 Phone: 645-8816 Email: msailsbe@buffalo.edu',
 'Samer, Andrew  Office: 130\xa0 Phone: 645-8818 Email: agsamer@buffalo.edu',
 'Schilder, Marc Office: 313 Phone: 645-8827 Email: mbschild@buffalo.edu',
 'Schmidt, Matthew Office: 129\xa0\xa0Phone: 645-8817\xa0 Email: mwschmid@buffalo.edu',
 'Shi, Ruonan Office: 139\xa0 Phone: 645-8824 Email: ruonansh@buffalo.edu',
 'Solanski, Deepisha Office: 140 Phone: 645-8825 Email: deepisha@buffalo.edu',
 'Song, Zhao  Office: 131 Phone: 645-8819 Email: zhaosong@buffalo.edu',
 'Sullivan, Mark Office: 136\xa0 Phone: 645-8821 Email: marksull@buffalo.edu',
 'Sun, Yuxun Office: 140 Phone: 645-8825 Email: yuxunsun@buffalo.edu',
 'Upadhyay, Aparna Office: 136\xa0 Phone: 645-8821 Email: aparnaup@buffalo.edu',
 'Wang, Biao  Office: 125 Phone: 645-8815 Email: bwang32@buffalo.edu',
 'Wang, Daxun  Office: 141 Phone: 645-8825 Email: daxunwan@buffalo.edu',
 'Wang, Shiruo  Office: 125 Phone: 645-8815 Email: shiruo@buffalo.edu',
 'Wang, Weiqi  Office: 125 Phone: 645-8815 Email: weiqiwan@buffalo.edu',
 'Winton, Daniel  Office: 125 Phone: 645-8815 Email: dmwinton@buffalo.edu',
 'Yuan, Cheng Office: 137\xa0 Phone: 645-8822 Email: chengyua@buffalo.edu',
 'Zalloum, Abdalrazzaq R.A. Personal Website Office: 140\xa0 Phone: 645-8825\xa0 Email: abdalraz@buffalo.edu',
 'Zeng, Naijiang Office: 137\xa0 Phone: 645-8822 Email: naijiang@buffalo.edu',
 'Zhou, Chen Office: 137\xa0 Phone: 645-8822 Email: czhou5@buffalo.edu',
 'Ziegler, Cameron Office: 140\xa0 Phone: 645-8825 Email: cz22@buffalo.edu']
go top

4. String Processing


Here we get names and emails from the strings.
In [13]:
dustin = grad_list[10]
dustin
Out[13]:
'Deutsch, Dustin  Office: 140\xa0 Phone: 645-8825 Email: dustinde@buffalo.edu'
In [19]:
n = dustin.find("Office")
n
Out[19]:
17
In [21]:
dustin[0:n].strip()
Out[21]:
'Deutsch, Dustin'
In [16]:
def get_name(s):
    stop = s.find("Office:")
    return s[:stop].strip()
In [17]:
get_name(dustin)
Out[17]:
'Deutsch, Dustin'
In [18]:
def get_email(s):
    start = s.find("Email:") + 6
    return s[start:].strip()

get_email(dustin)
Out[18]:
'dustinde@buffalo.edu'
In [19]:
for s in grad_list:
    name = get_name(s)
    email = get_email(s)
    print(f"Name:   {name}")
    print(f"Email:  {email}")
    print()
Name:   Abeya Ranasinghe Mudiyanselage, Asela V.
Email:  aselavir@buffalo.edu

Name:   Alegria, Linda
Email:  lindaale@buffalo.edu

Name:   Bittner, Alyson
Email:  alysonbi@buffalo.edu

Name:   Cain Charles
Email:  ccain2@buffalo.edu

Name:   Casper, Michael
Email:  mjcasper@buffalo.edu

Name:   Chang, Hong
Email:  hchang24@buffalo.edu

Name:   Chen, Yen-Lin
Email:  yenlinch@buffalo.edu

Name:   Cheuk, Ka Yue
Email:  kayueche@buffalo.edu

Name:   Chou, Han-Jung
Email:  hanjungc@buffalo.edu

Name:   Cosgrove, Gage (Makenzie)
Email:  gagecosg@buffalo.edu

Name:   Deutsch, Dustin
Email:  dustinde@buffalo.edu

Name:   Dey, Subhankar
Email:  subhanka@buffalo.edu

Name:   Doga, Hakan
Email:  hakandog@buffalo.edu

Name:   Dong, Sai
Email:  saidong@buffalo.edu

Name:   Engelhardt, Carolyn
Email:  cengelha@buffalo.edu

Name:   Goswami, Abhishek
Email:  goswami3@buffalo.edu

Name:   Gu, Jiaxi
Email:  jiaxigu@buffalo.edu

Name:   Hopfensperger, John
Email:  johnhopf@buffalo.edu

Name:   Hung, Tsz Fun
Email:  tszfunhu@buffalo.edu

Name:   Huynh, Bao
Email:  baohuynh@buffalo.edu

Name:   Jeong, Myonggin
Email:  myonggin@buffalo.edu

Name:   Jin, Xifeng
Email:  xifengji@buffalo.edu

Name:   Johnson, Megan
Email:  meganjoh@buffalo.edu

Name:   Jones, Raymond
Email:  rpjones2@buffalo.edu

Name:   Kilic, Bengier Ulgen
Email:  bengieru@buffalo.edu

Name:   Kim, Jiseong
Email:  jiseongk@buffalo.edu

Name:   Kireyev, Dmitri
Email:  dmitriki@buffalo.edu

Name:   Le, Minh Quang
Email:  minhquan@buffalo.edu

Name:   Lin, Wei
Email:  wlin27@buffalo.edu

Name:   Liu, Ruodan
Email:  rliu8@buffalo.edu

Name:   Liu,Tianmou
Email:  tianmoul@buffalo.edu

Name:   Liu, Yuan
Email:  yuanliu@buffalo.edu

Name:   Lottes, Jonathan
Email:  jllottes@buffalo.edu

Name:   Ma, Ning
Email:  nma22@buffalo.edu

Name:   Ma, Renda
Email:  rendama@buffalo.edu

Name:   Ma, Yuqing
Email:  yuqingma@buffalo.edu

Name:   Mandava, Navya
Email:  navyatejam@gmail.com

Name:   Meng, Lingqi
Email:  lingqime@buffalo.edu

Name:   Montoro, Michael
Email:  mnmontor@buffalo.edu

Name:   Oregero, Jeffrey
Email:  jaoreger@buffalo.edu

Name:   Peng, Jun
Email:  jpeng3@buffalo.edu

Name:   Raico, Pasquale
Email:  ppraico@buffalo.edu

Name:   Rozwood, Bud
Email:  budrozwo@buffalo.edu

Name:   Sailbery, Mitchell
Email:  msailsbe@buffalo.edu

Name:   Samer, Andrew
Email:  agsamer@buffalo.edu

Name:   Schilder, Marc
Email:  mbschild@buffalo.edu

Name:   Schmidt, Matthew
Email:  mwschmid@buffalo.edu

Name:   Shi, Ruonan
Email:  ruonansh@buffalo.edu

Name:   Solanski, Deepisha
Email:  deepisha@buffalo.edu

Name:   Song, Zhao
Email:  zhaosong@buffalo.edu

Name:   Sullivan, Mark
Email:  marksull@buffalo.edu

Name:   Sun, Yuxun
Email:  yuxunsun@buffalo.edu

Name:   Upadhyay, Aparna
Email:  aparnaup@buffalo.edu

Name:   Wang, Biao
Email:  bwang32@buffalo.edu

Name:   Wang, Daxun
Email:  daxunwan@buffalo.edu

Name:   Wang, Shiruo
Email:  shiruo@buffalo.edu

Name:   Wang, Weiqi
Email:  weiqiwan@buffalo.edu

Name:   Winton, Daniel
Email:  dmwinton@buffalo.edu

Name:   Yuan, Cheng
Email:  chengyua@buffalo.edu

Name:   Zalloum, Abdalrazzaq R.A. Personal Website
Email:  abdalraz@buffalo.edu

Name:   Zeng, Naijiang
Email:  naijiang@buffalo.edu

Name:   Zhou, Chen
Email:  czhou5@buffalo.edu

Name:   Ziegler, Cameron
Email:  cz22@buffalo.edu