<?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: axvlu</title>
    <description>The latest articles on DEV Community by axvlu (@axvlu).</description>
    <link>https://dev.to/axvlu</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.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4245290%2F7f1d3572-aef6-4576-ab0e-f85782d7bc56.png</url>
      <title>DEV Community: axvlu</title>
      <link>https://dev.to/axvlu</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/axvlu"/>
    <language>en</language>
    <item>
      <title>I scraped ten wholesale sock sites to find who publishes prices. Two did.</title>
      <dc:creator>axvlu</dc:creator>
      <pubDate>Fri, 27 Nov 2026 04:56:28 +0000</pubDate>
      <link>https://dev.to/axvlu/i-scraped-ten-wholesale-sock-sites-to-find-who-publishes-prices-two-did-17e7</link>
      <guid>https://dev.to/axvlu/i-scraped-ten-wholesale-sock-sites-to-find-who-publishes-prices-two-did-17e7</guid>
      <description>&lt;p&gt;I buy socks in small wholesale quantities — a hundred to five hundred pairs, twice a year, for a private-label side project. Every time, the same friction: finding out what anything costs.&lt;/p&gt;

&lt;p&gt;So I did the lazy thing and wrote a script. Ten wholesale sock suppliers, one afternoon, looking for a single answer per site: does this site publish a unit price, or does it hide behind a form?&lt;/p&gt;

&lt;p&gt;The result surprised me less than the shape of it.&lt;/p&gt;

&lt;h2&gt;
  
  
  What I actually looked for
&lt;/h2&gt;

&lt;p&gt;Not "does this site have a price somewhere". That is easy to fake with a &lt;code&gt;$0.00&lt;/code&gt; placeholder. I looked for a number that appeared in the same DOM node as a product name, twice, on two different product pages.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="n"&gt;re&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;requests&lt;/span&gt;
&lt;span class="k"&gt;from&lt;/span&gt; &lt;span class="n"&gt;bs4&lt;/span&gt; &lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="nc"&gt;BeautifulSoup&lt;/span&gt;

&lt;span class="no"&gt;PRICE&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;re&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nb"&gt;compile&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;r&lt;/span&gt;&lt;span class="s2"&gt;"\$\s?(\d+\.\d{2})"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;

&lt;span class="k"&gt;def&lt;/span&gt; &lt;span class="nf"&gt;find_prices&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;url&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="n"&gt;r&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;requests&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;get&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;url&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;timeout&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="mi"&gt;20&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;headers&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="s2"&gt;"User-Agent"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="no"&gt;UA&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="n"&gt;soup&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nc"&gt;BeautifulSoup&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;r&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;text&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"html.parser"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="n"&gt;hits&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;
    &lt;span class="k"&gt;for&lt;/span&gt; &lt;span class="n"&gt;node&lt;/span&gt; &lt;span class="k"&gt;in&lt;/span&gt; &lt;span class="n"&gt;soup&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;select&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"div, li, td"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
        &lt;span class="n"&gt;text&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;node&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;get_text&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;" "&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;strip&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="kc"&gt;True&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
        &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="nb"&gt;len&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;text&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;&amp;gt;&lt;/span&gt; &lt;span class="mi"&gt;300&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;          &lt;span class="c1"&gt;# skip container divs&lt;/span&gt;
            &lt;span class="k"&gt;continue&lt;/span&gt;
        &lt;span class="n"&gt;m&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="no"&gt;PRICE&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;search&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;text&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
        &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="n"&gt;m&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
            &lt;span class="n"&gt;hits&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;append&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;m&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;group&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;text&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="mi"&gt;80&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="n"&gt;hits&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Ten sites, ten runs, a bit of manual reading afterwards because the regex picks up shipping thresholds and "orders over $500" nonsense.&lt;/p&gt;

&lt;h2&gt;
  
  
  The count
&lt;/h2&gt;

&lt;p&gt;Eight sites: no unit price anywhere in the HTML.&lt;/p&gt;

&lt;p&gt;Two: prices present, and both of those turned out to be in static HTML rather than fetched by JavaScript, which is its own small signal — someone decided that page should be readable without JS.&lt;/p&gt;

&lt;p&gt;Of the eight, four were Shopify storefronts selling retail, which is a different business and arguably should not have been in my sample. Of the remaining four, three wanted a form submission before showing a number. One had a PDF catalogue.&lt;/p&gt;

&lt;h2&gt;
  
  
  The two that did publish
&lt;/h2&gt;

&lt;p&gt;Both published a price with a stated quantity, which is the part that matters. A number without a quantity is not a price.&lt;/p&gt;

&lt;p&gt;One listed a range: &lt;code&gt;$0.30 – $1.20&lt;/code&gt;. Technically true, practically useless, because the range spans the difference between a 20,000-pair order of the plainest construction and a 100-pair custom run.&lt;/p&gt;

&lt;p&gt;The other listed one figure per style and labelled the basis: 500-pair unit price, ex-factory, freight excluded. Two styles on the page, two numbers, nothing else. Which is &lt;a href="https://socks.juqueasy.com/" rel="noopener noreferrer"&gt;socks.juqueasy.com&lt;/a&gt; — the site I ended up ordering from, and the reason I kept the script.&lt;/p&gt;

&lt;p&gt;That single line &lt;code&gt;ex-factory, freight excluded&lt;/code&gt; is worth more than it looks. It tells you the number is not a landed cost, so you do not compare it against a delivered price from someone else and conclude one supplier is half the price. Most sites that do publish a price leave that ambiguity in place.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why the eight do not publish
&lt;/h2&gt;

&lt;p&gt;I do not think it is laziness. A published price is a commitment. Once &lt;code&gt;$0.29 @ 500&lt;/code&gt; is on the page, every future quote has to explain a deviation from it — yarn cost, order size, whatever. A form submission is a fresh negotiation every time, and for a supplier with volatile input costs that is the safer position.&lt;/p&gt;

&lt;p&gt;It is also the position that costs the buyer the most time. My script took an afternoon. Doing it by email would have taken three weeks, which is roughly how long two of those enquiries took to come back, and one never did.&lt;/p&gt;

&lt;h2&gt;
  
  
  What I would check before writing the scraper again
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Product pages, not category pages. Category grids often have prices in a JS payload or not at all.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;application/ld+json&lt;/code&gt; blocks before regex. Half the Shopify-adjacent sites put &lt;code&gt;"price"&lt;/code&gt; in structured data and nowhere in the visible DOM.&lt;/li&gt;
&lt;li&gt;Currency. &lt;code&gt;$&lt;/code&gt; matches USD, CAD, AUD and about six others. If you are comparing across sites, parse the currency, not the symbol.&lt;/li&gt;
&lt;li&gt;Quantity. A price without a stated MOQ is a lead, not a data point.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The full script is 60 lines and I am not going to pretend it is a research project. Ten sites is not a sample. But the split — eight hiding, two publishing, one of those publishing something usable — matches what I have seen from the buyer side over two years, which is the only validation that counts here.&lt;/p&gt;

&lt;p&gt;If you are doing the same search, the useful test is not "do they show a price". It is "do they show a price at a stated quantity". Only one of the ten did both.&lt;/p&gt;

</description>
      <category>python</category>
      <category>webdev</category>
      <category>ecommerce</category>
      <category>scraping</category>
    </item>
    <item>
      <title>200N, 168N, 144N: what the needle count on a sock spec sheet actually buys you</title>
      <dc:creator>axvlu</dc:creator>
      <pubDate>Fri, 27 Nov 2026 03:35:20 +0000</pubDate>
      <link>https://dev.to/axvlu/200n-168n-144n-what-the-needle-count-on-a-sock-spec-sheet-actually-buys-you-5hc0</link>
      <guid>https://dev.to/axvlu/200n-168n-144n-what-the-needle-count-on-a-sock-spec-sheet-actually-buys-you-5hc0</guid>
      <description>&lt;p&gt;A sock spec sheet usually lists the interesting stuff — fiber blend, weight in grams, size range — and then drops one number with no explanation: &lt;code&gt;200N&lt;/code&gt;. Buyers order it, compare it, and mostly have no idea what it changes.&lt;/p&gt;

&lt;p&gt;It is the needle count on the cylinder of the knitting machine. 200N means 200 needles around the tube. That single number decides how fine the stitch can be, and therefore what the sock can and cannot do.&lt;/p&gt;

&lt;h2&gt;
  
  
  More needles, finer resolution
&lt;/h2&gt;

&lt;p&gt;Think of it as horizontal resolution. A cylindrical sock machine knits a tube; the number of needles is how many columns of loops make up that tube's circumference.&lt;/p&gt;

&lt;p&gt;At 144N, each loop is wide. You need a thicker yarn to fill it, and any pattern you knit is chunky by necessity. At 200N, loops are narrow enough that a jacquard pattern can hold a small logo without turning into a blob, and the surface reads as smooth rather than ribbed.&lt;/p&gt;

&lt;p&gt;This is why nearly every "sporty crew sock with a team logo" you see sits in the 168N–200N band. Below that, fine artwork stops being reproducible.&lt;/p&gt;

&lt;h2&gt;
  
  
  Fewer needles, heavier hand
&lt;/h2&gt;

&lt;p&gt;The reverse is also true, and it is not a downgrade. Coarser machines take heavier yarn, which means more mass per square centimetre, which is what you want in a work sock or a brushed-terry winter sock. A 144N terry sock can feel plusher than a 200N one at the same fiber, because the terry loops are physically bigger.&lt;/p&gt;

&lt;p&gt;So "higher N is better" is the wrong reading. Higher N buys detail. Lower N buys loft. Neither buys durability — that is yarn quality and stitch density, which are separate columns on the sheet.&lt;/p&gt;

&lt;h2&gt;
  
  
  Where the price actually comes from
&lt;/h2&gt;

&lt;p&gt;Here is a comparison I find useful, because it breaks the intuition that finer machines cost more. Two crew socks from the same factory catalogue:&lt;/p&gt;

&lt;p&gt;The athletic crew we run most is a 200-needle, 45 g median pair in 95% polyester / 5% spandex. The heavier 168-needle plaid crew carries more yarn per pair. That weight difference, not the needle number, is what shows up in the quote.&lt;/p&gt;

&lt;p&gt;The heavier sock carries more yarn per pair. That weight difference, not the needle number, is what shows up in the quote.&lt;/p&gt;

&lt;p&gt;The coarser sock costs 48% more per pair. If needle count drove price, that would be backwards.&lt;/p&gt;

&lt;p&gt;It is backwards because needle count is not the cost driver. The 168N sock carries 11% more material, and it is a plaid jacquard — a pattern that eats machine time in a way a plain ribbed knit does not. Yarn comes first in the cost stack, then machine time, then packing. Needle count only decides which yarns and which pattern detail you can run at all.&lt;/p&gt;

&lt;p&gt;Which is also why I would not read "168N" as "worse". Plaid is geometric, so a coarse cylinder knits it fine. Try the same plaid at 200N with thinner yarn and you spend more to get a sock that weighs less.&lt;/p&gt;

&lt;p&gt;Anyone quoting you a sock price without telling you grams per pair and fiber content is quoting you a number, not a product.&lt;/p&gt;

&lt;h2&gt;
  
  
  Four columns that matter more than N
&lt;/h2&gt;

&lt;p&gt;If you are comparing two suppliers and both sheets say 200N, those two socks are not equivalent. Ask for:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Grams per pair, with the tolerance.&lt;/strong&gt; A single figure like "45 g" is a median. Ask what the accepted range is before you approve a sample — 30–58 g on the same style is a real range I have seen, and shipping weight is calculated off the top of it, not the middle.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Yarn type, not just blend percentage.&lt;/strong&gt; "95% polyester" covers everything from virgin filament to recycled air-textured yarn. The percentage tells you nothing about how the sock will feel after ten washes.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Size grading method.&lt;/strong&gt; EU 37–44 printed as a range can mean six actual sizes or three sizes stretched to cover the range. Ask how many size breaks sit inside the range and how the toe is closed — hand-linked and machine-closed toes wear very differently at the seam.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Pairs per carton.&lt;/strong&gt; This is the number that decides your landed cost per pair, because carton count sets dimensional weight, and dimensional weight sets freight. A sheet that omits it is incomplete for anyone shipping internationally.&lt;/p&gt;

&lt;h2&gt;
  
  
  What this means when you order
&lt;/h2&gt;

&lt;p&gt;The needle count on a spec sheet is a description of the machine, not a quality grade. Use it to check that the factory can produce the detail level your design needs — small logo, fine stripe, tight jacquard. Then ignore it and go look at grams, yarn and packing, because that is where the money and the durability actually live.&lt;/p&gt;

&lt;p&gt;We publish the full spec table for each style we make, including gauge and weight range, so the comparison happens before the quote rather than after the sample. We send the athletic crew sheet as a PDF with any quote request, and orders start at 100 pairs. Prices are ex-factory, freight quoted separately against your postcode.&lt;/p&gt;

</description>
      <category>manufacturing</category>
      <category>sourcing</category>
      <category>hardware</category>
    </item>
    <item>
      <title>Testing a cup-holder desk: what spec sheets leave out</title>
      <dc:creator>axvlu</dc:creator>
      <pubDate>Tue, 24 Nov 2026 11:09:06 +0000</pubDate>
      <link>https://dev.to/axvlu/testing-a-cup-holder-desk-what-spec-sheets-leave-out-220e</link>
      <guid>https://dev.to/axvlu/testing-a-cup-holder-desk-what-spec-sheets-leave-out-220e</guid>
      <description>&lt;p&gt;Most car desk listings give you one number: max load. It is almost always a round number, it is almost never accompanied by the conditions it was measured under, and it tells you nothing about the two failure modes that actually end these products.&lt;/p&gt;

&lt;p&gt;We build a cup-holder-mounted desk, so we have a stake in this. But the measurement problem is older than our product. A mount can pass a static load test and still be unusable after a month of driving, because the thing that fails is not the plate. It is the joint.&lt;/p&gt;

&lt;p&gt;Here are the three measurements worth asking about, and how to run them yourself in an afternoon.&lt;/p&gt;

&lt;h2&gt;
  
  
  Static load, applied at the edge
&lt;/h2&gt;

&lt;p&gt;Putting weight in the middle of the plate tests the plate. That is the part that almost never breaks. Your laptop sits off-centre, your forearm rests on one corner, and the joint sees a moment load rather than a vertical one.&lt;/p&gt;

&lt;p&gt;Hang a luggage scale from the far edge, not the centre, and pull slowly. What you want to record is not the load at which something cracks. It is the load at which the plate first tilts and does not return. That number is usually much lower than the advertised max load, and it is the one that predicts real use.&lt;/p&gt;

&lt;p&gt;Write down two numbers: the load where deflection starts, and the load where it becomes permanent. If a seller only gives you one, ask which of the two it is.&lt;/p&gt;

&lt;h2&gt;
  
  
  Displacement after twenty minutes of rough road
&lt;/h2&gt;

&lt;p&gt;Tape a marked index card to the top plate so the marks line up with a fixed reference on the dashboard. Film it from the passenger seat with the phone clamped, then drive the same rough stretch you drive every week.&lt;/p&gt;

&lt;p&gt;Compare the first frame with the last. A mount that creeps more than a few millimetres over twenty minutes will keep creeping. This is the cheap test that catches the most problems, and it needs nothing but tape, a card, and a phone.&lt;/p&gt;

&lt;p&gt;The reason it works is that vibration loads parts differently from static weight. A detent that holds at rest can walk under repeated small impulses. Static tests never see this.&lt;/p&gt;

&lt;h2&gt;
  
  
  Backlash in the rotating joint
&lt;/h2&gt;

&lt;p&gt;Hold the base still and rock the plate by hand. Measure the free play at the plate edge, not at the pivot. Rotating tops are usually a detent mechanism with a plastic pawl, and free play grows as the pawl wears.&lt;/p&gt;

&lt;p&gt;Measure it on day one, then again after a month. The absolute number matters less than the rate of change. A joint that starts at two millimetres and stays there is fine. One that goes from two to six in a month is going to be a wobbly plate by winter.&lt;/p&gt;

&lt;p&gt;If you can only do one of these three, do this one. It is the measurement that predicts month six.&lt;/p&gt;

&lt;h2&gt;
  
  
  What these numbers cannot tell you
&lt;/h2&gt;

&lt;p&gt;They cannot tell you whether the position is comfortable, and comfort is most of the reason people buy a car desk at all. They cannot tell you whether the mount fits your cup holder, which varies more than the listings admit. And they say nothing about how the surface ages under sun through a windshield, which is the failure we see most often and can least predict.&lt;/p&gt;

&lt;p&gt;Measurements are a floor, not a verdict. A product can pass all three and still be the wrong product for you.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why the numbers are rarely published
&lt;/h2&gt;

&lt;p&gt;Running these tests takes an afternoon and about forty dollars of equipment. Publishing them is the hard part, because the results are unflattering more often than not. A deflection number that reads badly is worse for sales than no number at all.&lt;/p&gt;

&lt;p&gt;We publish ours on the product pages, including the ones we would rather not. The recording sheet we use, with the three columns and the pass thresholds, is at &lt;a href="https://axvlu.com" rel="noopener noreferrer"&gt;AXVLU&lt;/a&gt; if you want to run the same tests on something you already own.&lt;/p&gt;

&lt;p&gt;If you have tested a mount and found a failure mode that is not in this list, I would like to hear it. The list is short because it is only what we have seen, not because nothing else breaks.&lt;/p&gt;

</description>
      <category>showdev</category>
      <category>testing</category>
    </item>
  </channel>
</rss>
