Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3350064
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T01:44:30+00:00 2026-05-18T01:44:30+00:00

I just started studying programming about 6 months ago and I have really been

  • 0

I just started studying programming about 6 months ago and I have really been diving deep into Objective-C. Unfortunately, I don’t know any programmers IRL to bounce general questions off of.

What languages are being used when people write programs that will search a website for information and then send it back? For example, if I wanted to write a program that would search weather.com for the daily temperature of the last 30 days in a given location and then send it back as say…an NSArray or NSDictionary, how would i do that? Can I do that in Objective C or is that super-advanced scripting language stuff? If I CAN do it in Objective-C, can someone link to a tutorial or place that may get me started learning that type of stuff? (I don’t really know the term for this type of programming so my google searches have been unfruitful.)

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-18T01:44:30+00:00Added an answer on May 18, 2026 at 1:44 am

    I most commonly use PHP and MySQL with CURL

    http://en.wikipedia.org/wiki/CURL

    You can do some fun things like Search Engine Results Page queries, etc.

    Here is the source from a crawler I use. I’ve cut out some parts for anonymity’s sake, but it’s a good almost-working example. I can help you get it running if need be.

    <?php
    class Crawler {
    
      protected $markup = '';
      protected $uri = '';
    
      protected $db_location = "localhost";
      protected $db_username = "***";
      protected $db_password = "***";
      protected $db_name = "***";
    
      public function __construct() {
        ini_set('memory_limit', -1);
      }
    
      public function getMarkup() {
        $markup = "";
        $markup = @file_get_contents($this->uri);
        return $markup;
      }
    
      public function get($type) {
        $method = "_get_{$type}";
        if (method_exists($this, $method)){
          return call_user_method($method, $this);
        }
      }
    
      protected function db_query($query) {
        $connection = mysql_connect($this->db_location,$this->db_username,$this->db_password) or die(mysql_error());
        mysql_select_db($this->db_name,$connection) or die(mysql_error()." >> ".$query);
    
        //echo $query."<br/>";  //for debugging
    
        $result = mysql_query($query,$connection) or die (mysql_error()." >> ".$query);
    
    
        $i = 0;
    
        if($result != 1)
            {
                while ($data_array = mysql_fetch_array($result))
                    {
                        foreach($data_array as $key => $value)
                            {
                                $tableArray[$i][$key] = stripslashes($data_array[$key]);
                            }
    
                        $i++;
                    }
    
                return $tableArray;
            }
      }
    
      protected function db_insert($table,$array) {
            $tableArray = $this->db_query("show columns from ".$table);
    
            $inputString = "";
    
            foreach($tableArray as $key => $value)
                {
                    if (array_key_exists($value[0], $array) && $value[0]) {
                        $inputString .= "'".addslashes($array[$value[0]])."', ";
                    } else {
                        $inputString .= "'', ";
                    }
                }
    
            $inputString = substr($inputString, 0, -2);
            $this->db_query("insert into $table values(".$inputString.")");
    
            return mysql_insert_id();
      }
    
      protected function _get_data() {
            //$scrape['id'] = $this->get('id');
            $scrape['name'] = $this->get('name');
            $scrape['tags'] = $this->get('tags');
            $scrape['stat_keys'] = $this->get('stat_keys');
            $scrape['stat_values'] = $this->get('stat_values');
    
            foreach($scrape['stat_values'] as $key => $value) {
                $scrape['stat_values'][$key] = trim($scrape['stat_values'][$key]);
    
                if(strpos($value,"<h5>Featured Product</h5>")) {
                    unset($scrape['stat_values'][$key]);
                }
                if(strpos($value,"<h5>Featured Company</h5>")) {
                    unset($scrape['stat_values'][$key]);
                }
                if(strpos($value,"<h5>Featured Type</h5>")) {
                    unset($scrape['stat_values'][$key]);
                }
                if(strpos($value,"sign in")) {
                    unset($scrape['stat_values'][$key]);
                }
                if(strpos($value,"/100")) {
                    unset($scrape['stat_values'][$key]);
                }
            }
    
            if(sizeof($scrape['tags']) > 0 && is_array($scrape['tags'])) {
                foreach($scrape['tags'] as $tag) {
                    $tag_array[$tag] = $tag_array[$tag] + 1;
                }
    
                $scrape['tags'] = $tag_array;
    
                foreach($scrape['tags'] as $key => $tag_count) {
                    $scrape['tags'][$key] = $tag_count - 1;
                }
            }
    
            $scrape['stat_values'] = array_merge(array(),$scrape['stat_values']);
    
            return $scrape;
      }
    
      protected function _get_images() {
        if (!empty($this->markup)){
          preg_match_all('/<img([^>]+)\/>/i', $this->markup, $images);        
          return !empty($images[1]) ? $images[1] : FALSE;
        }
      }
    
      protected function _get_links() {
        if (!empty($this->markup)){
          preg_match_all('/<a([^>]+)\>(.*?)\<\/a\>/i', $this->markup, $links); 
          return !empty($links[1]) ? $links[1] : FALSE;
        }
      }
    
      protected function _get_id() {
        if (!empty($this->markup)){
          preg_match_all('/\/wine\/view\/([^`]*?)-/', $this->markup, $links); 
          return !empty($links[1]) ? $links[1] : FALSE;
        }
      }
    
    
      protected function _get_grape() {
        if (!empty($this->markup)){
          preg_match_all('/ class="linked" style="font-size: 14px;">([^`]*?)<\/a>/', $this->markup, $links); 
          return !empty($links[1]) ? $links[1] : FALSE;
        }
      }
    }
    
    if($_GET['pass'] == "go") {
        $crawl = new Crawler();
        $crawl->go();
    }
    ?>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have just started studying OOP and I am a little confused of the
Just started working with android and ran into a small problem. I am have
Have just started using Google Chrome , and noticed in parts of our site,
I just started thinking about creating/customizing a web crawler today, and know very little
Have just started using Visual Studio Professional's built-in unit testing features, which as I
I just started using SVN, and I have a cache directory that I don't
I just started creating my data-access layer using LinqToSql. Everybody is talking about the
I just started studying C++, and I met this new guy: ->. I was
Just started designing a database which I have not done before. And am wondering
i just started two weeks ago with ObjectiveC and i'm a complete noob so,

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.