{ "cells": [ { "cell_type": "markdown", "metadata": {}, "source": [ "___\n", "\n", " \n", " \n", "
\n", "
\n", " \n", "
Content Copyright by Pierian Data and xDM Consulting
" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "# PDFs and Spreadsheets Puzzle Exercise\n", "\n", "Let's test your skills, the files needed for this puzzle exercise\n", "\n", "You will need to work with two files for this exercise and solve the following tasks:\n", "\n", "* Task One: Use Python to extract the Google Drive link from the .csv file. (Hint: Its along the diagonal from top left to bottom right).\n", "* Task Two: Download the PDF from the Google Drive link (we already downloaded it for you just in case you can't download from Google Drive) and find the phone number that is in the document. Note: There are different ways of formatting a phone number!" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "## Task One: Grab the Google Drive Link from .csv File" ] }, { "cell_type": "code", "execution_count": null, "metadata": { "collapsed": true }, "outputs": [], "source": [] }, { "cell_type": "code", "execution_count": 14, "metadata": {}, "outputs": [ { "data": { "text/plain": [ "'https://drive.google.com/open?id=1G6SEgg018UB4_4xsAJJ5TdzrhmXipr4Q'" ] }, "execution_count": 14, "metadata": {}, "output_type": "execute_result" } ], "source": [ "# THe correct result is shown below, if you can't download from Google Drive, \n", "# we added the PDF file to the Exercise_Files folder already" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "## Task Two: Download the PDF from the Google Drive link and find the phone number that is in the document. " ] }, { "cell_type": "code", "execution_count": 1, "metadata": { "collapsed": true }, "outputs": [], "source": [ "# You should get this phone number\n", "# 505 503 4455" ] } ], "metadata": { "anaconda-cloud": {}, "kernelspec": { "display_name": "Python 3", "language": "python", "name": "python3" }, "language_info": { "codemirror_mode": { "name": "ipython", "version": 3 }, "file_extension": ".py", "mimetype": "text/x-python", "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", "version": "3.8.3" } }, "nbformat": 4, "nbformat_minor": 2 }