<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Ben</title>
    <description>The latest articles on DEV Community by Ben (@olney1).</description>
    <link>https://dev.to/olney1</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F715750%2F48526685-d638-48c7-9486-de7541b7b711.jpeg</url>
      <title>DEV Community: Ben</title>
      <link>https://dev.to/olney1</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/olney1"/>
    <language>en</language>
    <item>
      <title>Crawling Thousands of URL's? Import sys.</title>
      <dc:creator>Ben</dc:creator>
      <pubDate>Mon, 30 May 2022 21:20:26 +0000</pubDate>
      <link>https://dev.to/olney1/crawling-thousands-of-urls-import-sys-4fk7</link>
      <guid>https://dev.to/olney1/crawling-thousands-of-urls-import-sys-4fk7</guid>
      <description>&lt;p&gt;This post is mainly here to act as a mental note for me in the future! However, you might find it helpful.&lt;/p&gt;

&lt;p&gt;I'm coding a bot that loops through a CSV file of about 15,000 URL's, these are added to a Set when successfully scraped. &lt;/p&gt;

&lt;p&gt;But, when Firefox or Chrome driver couldn't load the website, my bot would require a restart. The scraper function would need to restart again and check to see if the URL was in the Set.&lt;/p&gt;

&lt;p&gt;This would throw an exception saying something to the effect of 'maximum recursion depth exceeded'&lt;/p&gt;

&lt;p&gt;If you get this error when running your Python code try this:&lt;/p&gt;

&lt;p&gt;&lt;code&gt;import sys&lt;br&gt;
sys.setrecursionlimit(40000)&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;Courtesy of &lt;a href="https://stackoverflow.com/questions/6809402/python-maximum-recursion-depth-exceeded-while-calling-a-python-object"&gt;coderjack&lt;/a&gt; this will increase the capacity of the stack and allow the code to run.&lt;/p&gt;

&lt;p&gt;Be careful with the number you set this to, especially if you are on an old machine. The spinning circle may pay a visit.&lt;/p&gt;

</description>
      <category>python</category>
    </item>
    <item>
      <title>HOW TO SET UP A FREE CRYPTOCURRENCY TRADING BOT - BEGINNER'S GUIDE</title>
      <dc:creator>Ben</dc:creator>
      <pubDate>Sun, 10 Oct 2021 14:54:03 +0000</pubDate>
      <link>https://dev.to/olney1/how-to-set-up-a-free-cryptocurrency-trading-bot-beginner-s-guide-36pm</link>
      <guid>https://dev.to/olney1/how-to-set-up-a-free-cryptocurrency-trading-bot-beginner-s-guide-36pm</guid>
      <description>&lt;p&gt;Here are the links to the resources you will need to get started:&lt;/p&gt;

&lt;p&gt;Video: &lt;a href="https://www.youtube.com/watch?v=vtDKiXgHzxA"&gt;https://www.youtube.com/watch?v=vtDKiXgHzxA&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Bot code: &lt;a href="https://github.com/whittlem/pycryptobot"&gt;https://github.com/whittlem/pycryptobot&lt;/a&gt;&lt;/p&gt;




&lt;p&gt;Trading Exchanges that work with this Bot:&lt;br&gt;
Coinbase: &lt;a href="https://www.coinbase.com/join/olney_0c"&gt;https://www.coinbase.com/join/olney_0c&lt;/a&gt;&lt;br&gt;
Binance: &lt;a href="https://www.binance.com/en/register?ref=73328165"&gt;https://www.binance.com/en/register?ref=73328165&lt;/a&gt;&lt;/p&gt;




&lt;p&gt;The Raspberry Pi Shopping List:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Raspberry Pi (Model 4b shown in this video with 4GB memory)&lt;/li&gt;
&lt;li&gt;Official UK Raspberry Pi 4 Power Supply (5.1V 3A)&lt;/li&gt;
&lt;li&gt;Micro SD - Pre-Loaded with NOOBS (Official Card &amp;amp; Adapter)
Store: &lt;a href="https://uk.pi-supply.com/?ref=r9urn2si3b"&gt;https://uk.pi-supply.com/?ref=r9urn2si3b&lt;/a&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;(WORLDWIDE SHIPPING)&lt;/p&gt;




&lt;p&gt;FIRSTLY BEFORE THE VIDEO:&lt;/p&gt;

&lt;p&gt;Open your Pi terminal window and type:&lt;/p&gt;

&lt;p&gt;sudo apt update&lt;/p&gt;

&lt;p&gt;then:&lt;/p&gt;

&lt;p&gt;sudo apt install git&lt;/p&gt;




&lt;p&gt;Learn the Basics of Python, enough to edit and make changes to the bot. Python is one of the easiest coding languages to learn and the language of the future with Machine Learning and AI: &lt;a href="https://amzn.to/3v4iZfz"&gt;https://amzn.to/3v4iZfz&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Michael, the developer of the bot code, writes regularly about updates and has more information about how to install and configure the bot here: &lt;a href="https://whittle.medium.com"&gt;https://whittle.medium.com&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;How to Install the Bot on a Raspberry Pi:&lt;br&gt;
&lt;a href="https://github.com/yanone/raspberrypycryptobot"&gt;https://github.com/yanone/raspberrypycryptobot&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;TradingView (Great app for price/candlestick charts):&lt;br&gt;
&lt;a href="https://www.tradingview.com/gopro/?share_your_love=Ben23O"&gt;https://www.tradingview.com/gopro/?share_your_love=Ben23O&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Investopedia:&lt;br&gt;
These charts are recommended:&lt;br&gt;
&lt;a href="https://www.investopedia.com/terms/e/ema.asp"&gt;https://www.investopedia.com/terms/e/ema.asp&lt;/a&gt;&lt;br&gt;
&lt;a href="https://www.investopedia.com/terms/g/goldencross.asp"&gt;https://www.investopedia.com/terms/g/goldencross.asp&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Please note that some of these links above are affiliated. By clicking on them and making purchases/signing up it will help support further articles/videos on this project.&lt;/p&gt;

&lt;p&gt;DISCLAIMER: The information provided in this post does not constitute investment advice, financial advice, trading advice, or any other sort of advice and you should not treat any of the website's content as such. I do not recommend that any cryptocurrency should be bought, sold, or held by you. Do conduct your own due diligence and consult a qualified financial advisor before making any investment decisions.&lt;/p&gt;

</description>
    </item>
  </channel>
</rss>
