Skip to content
View in the app

A better way to browse. Learn more.

Web Designer Forum

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Server Solution.

Featured Replies

Hi All,

 

I am currently working on a project which involves 'scraping' data from a website and storing the data in a PostGreSQL database. The 'scraping' is done via a Python script.

 

I have set this up locally on my Ubuntu machine using an Apache server and installed some modules to facilitate the Python script. What I require now is the Python script to be run every minute and then store the data in a PostGreSQL database.

 

I am interested in hosts who can provide this and would like to know how much it would cost roughly.

 

Many Thanks,

 

Saeed.

Hi Saeed,

 

Can you email me over the details of this script, including any config changes you needed to make to any server software (eg. firewall etc...) to nick.hawkins [at] markethosting.co.uk.

 

We run Python and PostgreSQL and Cron's can be setup in your control panel (cPanel). Though I'm not sure why you would want to run this script every minute? Depending on the intensity of the scipt, I can't say now whether we would allow it to run this frequently.

 

This requirement would fit inside our Starter Package, from £3.99 per month

 

http://www.markethosting.co.uk/uk-cpanel-web-hosting.html

We should be able to support this including the additional modules on our Virtual Private Servers, it's not something we would be able to support in a shared/reseller hosting environment as we don't offer PostgresSQL or customer specific modules.

 

Feel free to get in touch if you would like some further details.

Hi All,

 

I am currently working on a project which involves 'scraping' data from a website and storing the data in a PostGreSQL database. The 'scraping' is done via a Python script.

 

I have set this up locally on my Ubuntu machine using an Apache server and installed some modules to facilitate the Python script. What I require now is the Python script to be run every minute and then store the data in a PostGreSQL database.

 

I am interested in hosts who can provide this and would like to know how much it would cost roughly.

 

Many Thanks,

 

Saeed.

 

What type of Data are you scraping and from where?

To be honest, without any more info and a why your scraping data every 60 seconds, you might find a lack of interest to host this at all.

  • Author

What type of Data are you scraping and from where?

To be honest, without any more info and a why your scraping data every 60 seconds, you might find a lack of interest to host this at all.

Hi Wesh,

 

Thanks for replying.

 

The project is for a company I am working for. I feel that the details are potentially commercially sensitive information therefore it does not seem appropriate to disclose details on a public forum. The pages from where the data is scraped from is updated every minute with new information hence scraping is done so frequently.

  • Author

We should be able to support this including the additional modules on our Virtual Private Servers, it's not something we would be able to support in a shared/reseller hosting environment as we don't offer PostgresSQL or customer specific modules.

 

Feel free to get in touch if you would like some further details.

 

Do you have Python installed on your VPS or would it be installed on request? If so, which version?

 

Saeed.

Do you have Python installed on your VPS or would it be installed on request? If so, which version?

 

Saeed.

 

Hi Saeed,

 

Yes, Python is installed as standard.

 

We install the latest stable version, but we can install any version of your choice.

Sounds like a Twitter feed scraper or similar.

 

Efficient database storage and design will be very important for this project. We were working with a client recently that had to index/store 300GB of data in a MySQL database - it wasn't pretty.

 

What I would recommend is possibly creating a table for each x number of entries (say, every 250,000). This way, when you do an insert or update, only the table upon which you are inserting or updating requires a lock. You could take this further, depending on how relational the database needs to be and use a separate database for different "blocks" of data. This will help the scalability of your system immensely. :)

  • Author

Sounds like a Twitter feed scraper or similar.

 

Efficient database storage and design will be very important for this project. We were working with a client recently that had to index/store 300GB of data in a MySQL database - it wasn't pretty.

 

What I would recommend is possibly creating a table for each x number of entries (say, every 250,000). This way, when you do an insert or update, only the table upon which you are inserting or updating requires a lock. You could take this further, depending on how relational the database needs to be and use a separate database for different "blocks" of data. This will help the scalability of your system immensely. :)

 

Thanks Darren, that is useful information.

  • Author

Hi All,

 

We have optimised the python script so that it is run for a set period of time instead of it being run every minute. We are still looking at server options, judging from what we have done so far we will require a plan that offers a lot of hard disk space, ideally around a couple 100 GBs.

 

Saeed.

Create an account or sign in to comment

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.