[GNC] gnucash-cli --quotes get

Jack Frillman jcf_m_lists at me.com
Mon May 17 20:28:32 EDT 2021


And I wrote a Python scripts and a BASH script that scrapes the prices 
off of the webpage and creates csv file.

On 5/17/21 5:28 PM, Robin Chattopadhyay wrote:
> I have a Python script that I've created that takes in a CSV file and loads
> the prices into Gnucash. I would be willing to share it; I know it works
> with the SQLite backend, I haven't tested it with any other backend.
>
> Robin
>
> On Mon, May 17, 2021 at 6:59 AM mike823 <fkjasdhf878 at mailinator.com> wrote:
>
>> I might do it. I am looking in gnucash/gnucash-cli.cpp and I see the code
>> bellow in Gnucash::GnucashCli::start . Is another developer already working
>> on the same functionality?
>>
>>
>>
>>      if (m_quotes_cmd)
>>      {
>>          if (*m_quotes_cmd != "get")
>>          {
>>              std::cerr << bl::format (bl::translate("Unknown quotes command
>> '{1}'")) % *m_quotes_cmd << "\n\n"
>>              << *m_opt_desc_display.get();
>>              return 1;
>>          }
>>
>>          if (!m_file_to_load || m_file_to_load->empty())
>>          {
>>              std::cerr << bl::translate("Missing data file parameter") <<
>> "\n\n"
>>                        << *m_opt_desc_display.get();
>>              return 1;
>>          }
>>          else
>>              return Gnucash::add_quotes (m_file_to_load);
>>      }
>>
>>
>>
>>
>> --
>> Sent from: http://gnucash.1415818.n4.nabble.com/GnuCash-User-f1415819.html
>> _______________________________________________
>> gnucash-user mailing list
>> gnucash-user at gnucash.org
>> To update your subscription preferences or to unsubscribe:
>> https://lists.gnucash.org/mailman/listinfo/gnucash-user
>> If you are using Nabble or Gmane, please see
>> https://wiki.gnucash.org/wiki/Mailing_Lists for more information.
>> -----
>> Please remember to CC this list on all your replies.
>> You can do this by using Reply-To-List or Reply-All.
>>
> _______________________________________________
> gnucash-user mailing list
> gnucash-user at gnucash.org
> To update your subscription preferences or to unsubscribe:
> https://lists.gnucash.org/mailman/listinfo/gnucash-user
> If you are using Nabble or Gmane, please see https://wiki.gnucash.org/wiki/Mailing_Lists for more information.
> -----
> Please remember to CC this list on all your replies.
> You can do this by using Reply-To-List or Reply-All.

-- 
Old Unix programmers never die, they just mv to /dev/null
- Anonymous



More information about the gnucash-user mailing list