# Get table data form a website.

**URL:** https://forum.kx.com/t/get-table-data-form-a-website/11551
**Category:** Community Support
**Tags:** kdb-and-q
**Created:** [June 12, 2017, 2:59pm UTC](https://forum.kx.com/t/get-table-data-form-a-website/11551 "2017-06-12T14:59:00Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![VA1](https://avatars.discourse-cdn.com/v4/letter/v/7bcc69/32.png) [@VA1](https://forum.kx.com/u/VA1)
#### Post date: [June 12, 2017, 2:59pm UTC](https://forum.kx.com/t/get-table-data-form-a-website/11551/1 "2017-06-12T14:59:00Z")

</div>

Hi Gurus,&nbsp;

Is there any way I could come to a website like this:&nbsp;https://www.instituteforsupplymanagement.org/ismreport/mfgrob.cfm?SSO=1&nbsp;and pull data the “MANUFACTURING AT A GLANCE”&nbsp;table or the whole table from that website? I guess I somehow need to load the webpage through KDB and use SSR function?&nbsp;

Or where can I find info on how to use KDB for pulling data using http requests?&nbsp;

Regards, VA

---

<div class="post-metadata">

### Author: ![effbiae](https://avatars.discourse-cdn.com/v4/letter/e/ecae2f/32.png) [@effbiae](https://forum.kx.com/u/effbiae)
#### Post date: [June 12, 2017, 5:57pm UTC](https://forum.kx.com/t/get-table-data-form-a-website/11551/2 "2017-06-12T17:57:00Z")

</div>

the url is https, so you could look up how to setup TLS in q. &nbsp;or…

here’s a start (on linux/mac at least):

q)\c 30 1000

q)system(“(curl https://www.instituteforsupplymanagement.org/ismreport/mfgrob.cfm?SSO=1 \>mf.txt)”)

&nbsp; % Total &nbsp; &nbsp;% Received % Xferd &nbsp;Average Speed &nbsp; Time &nbsp; &nbsp;Time &nbsp; &nbsp; Time &nbsp;Current

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Dload &nbsp;Upload &nbsp; Total &nbsp; Spent &nbsp; &nbsp;Left &nbsp;Speed

100 90496 &nbsp; &nbsp;0 90496 &nbsp; &nbsp;0 &nbsp; &nbsp; 0 &nbsp;35438 &nbsp; &nbsp; &nbsp;0 --:–:-- &nbsp;0:00:02 --:–:-- 35433

q)(first where {count ss[x;“MANUFAC”]}each x)\_x:read0`:mf.txt

“\<th class="f2" valign="top" colspan="7"\>MANUFACTURING AT A GLANCE\<br /\>”

“May 2017\</th\>”

“\</tr\>”

“\<tr\>”

“\<th class="f2" valign="top" align="left"\>\<br /\>\<br /\>Index\</th\>”

“\<th class="f2" valign="top"\>Series\<br /\>Index\<br /\>May\</th\>”

“\<th class="f2" valign="top"\>Series\<br /\>Index\<br /\>Apr\</th\>”

“\<th class="f2" valign="top"\>Percentage\<br /\>Point\<br /\>Change\</th\>”

“\<th class="f2" valign="top"\>\<br /\>\<br /\>Direction\</th\>”

“\<th class="f2" valign="top"\>Rate\<br /\>of\<br /\>Change\</th\>”

“\<th class="f2" valign="top"\>\<br /\>Trend\*\<br /\>(Months)\</th\>”

“\</tr\>”

“\<tr\>”

“\<td class="f2" valign="top"\>\<strong\>PMI\<sup\>®\</sup\>\</strong\>\</td\>”

“\<td class="f2" valign="top" align="center"\>54.9\</td\>”

“\<td class="f2" valign="top" align="center"\>54.8\</td\>”

“\<td class="f2" valign="top" align="center"\>+0.1\</td\>”

“\<td class="f2" valign="top" align="center"\>Growing\</td\>”

“\<td class="f2" valign="top" align="center"\>Faster\</td\>”

“\<td class="f2" valign="top" align="center"\>9\</td\>”

“\</tr\>”

“\<tr\>”

“\<td class="f2" valign="top"\>\<strong\>New Orders\</strong\>\</td\>”

“\<td class="f2" valign="top" align="center"\>59.5\</td\>”

“\<td class="f2" valign="top" align="center"\>57.5\</td\>”

“\<td class="f2" valign="top" align="center"\>+2.0\</td\>”

“\<td class="f2" valign="top" align="center"\>Growing\</td\>”

..
