how to get data
play

How to get data Dr. Steven Bitner Announcement HW # 8 is now due - PowerPoint PPT Presentation

How to get data Dr. Steven Bitner Announcement HW # 8 is now due on Thanksgiving (Nov 22 nd ) Pause for booing This assignment was supposed to be due on Tuesday, so if you did the assignment, then youve got nothing to worry about


  1. How to get data Dr. Steven Bitner

  2. Announcement  HW # 8 is now due on Thanksgiving (Nov 22 nd )  Pause for booing  This assignment was supposed to be due on Tuesday, so if you did the assignment, then you’ve got nothing to worry about  This delay is due to some permissions and access problems that some individuals were having with the assignment  Please do not delay in notifying me if you cannot complete the assignment. I can’t help if I don’t know

  3. KC PUG (PHP User’s Group) meeting  This Saturday (17 November) at 2:30pm  Location: Red Nova Labs  4830 Rainbow Blvd, Westwood, KS  5% extra credit  Option a: present a short (< 5 minutes) brief to present to the class covering what you learned  Option b: minimum 300 word summary of the meeting turned in to me

  4. Data is everywhere  Except in your handy little database

  5. Find a source  Can be an existing DB  Find a spreadsheet with the data  Find a website with the data  Last resort, hand typing it

  6. In an existing database?  Use the database export functionality to create the SQL needed to get the data on your server  If you can’t create SQL from the database (many versions of Access are this way), save it as a CSV (comma delimited file)

  7. In a spreadsheet  If it is in a spreadsheet, simply save the sheet as a CSV file that you can use to import  e.g. UMKC course listing

  8. Use MS Excel  Click on the “data” tab  Click on “from web”  Enter in the url of the site with the table  e.g. http://www.fedjobs.com/pay/restofus.html  Click on the arrow next to the table you want and Excel does the rest

  9. Excel solution  Obviously much easier than manually copying/pasting the data yourself  Extremely limited  Websites using <div> instead of <table> for layout won’t work  Many websites using table still don’t work

  10. Importing a CSV in phpMyAdmin  Must be CSV  Limited by max_file_upload parameter  Column headers will be added as rows, so delete them if they exist  If you insert into an existing table, the column count must match up or you have to define the column matchings

  11. Spiders  When all else fails, you can hand-jam the data, or write a custom spider  Useful if you need to routinely fetch new data  Also useful if the data set is very large but consistently formatted

Download Presentation
Download Policy: The content available on the website is offered to you 'AS IS' for your personal information and use only. It cannot be commercialized, licensed, or distributed on other websites without prior consent from the author. To download a presentation, simply click this link. If you encounter any difficulties during the download process, it's possible that the publisher has removed the file from their server.

Recommend


More recommend